Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001268, allocations: 107.5 kB / 16.45 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 186.4 kB / 17.38 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.6/1.6, allocations: 205.1 MB / 223.3 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08826/0.08826, allocations: 12.59 MB / 283.2 MB, free: 15.39 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 77.64 kB / 394.2 MB, free: 45.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1187, allocations: 49.41 MB / 443.6 MB, free: 460 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.00342/0.1222, allocations: 1.84 MB / 445.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.1235, allocations: 0.675 MB / 446.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001668/0.1237, allocations: 7.938 kB / 446.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.1239, allocations: 19.8 kB / 446.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001519/0.124, allocations: 19.8 kB / 446.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003943/0.1244, allocations: 103.7 kB / 446.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.1247, allocations: 139.6 kB / 446.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002291/0.1249, allocations: 73.38 kB / 446.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.125, allocations: 59.7 kB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001024/0.1251, allocations: 51.72 kB / 446.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.261e-05/0.1252, allocations: 12 kB / 446.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.665e-05/0.1252, allocations: 8 kB / 446.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.49e-05/0.1253, allocations: 31.86 kB / 446.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.25e-05/0.1254, allocations: 59.59 kB / 446.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002527/0.1256, allocations: 139.3 kB / 446.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1256, allocations: 0 / 446.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1256, allocations: 0 / 446.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1257, allocations: 0 / 446.8 MB, free: 13.21 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0007797/0.1264, allocations: 462.8 kB / 447.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1265, allocations: 8.031 kB / 447.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.874e-05/0.1266, allocations: 24.78 kB / 447.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/0.127, allocations: 245 kB / 447.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.127, allocations: 12.12 kB / 447.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.935e-05/0.1271, allocations: 12 kB / 447.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006698/0.1278, allocations: 268.3 kB / 447.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.1278, allocations: 4 kB / 447.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.1278, allocations: 3.938 kB / 447.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.1278, allocations: 4 kB / 447.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.1281, allocations: 71.89 kB / 447.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005881/0.1287, allocations: 427.5 kB / 448.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005283/0.1292, allocations: 294.1 kB / 448.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.1294, allocations: 112.2 kB / 448.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.1294, allocations: 7.938 kB / 448.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.13e-05/0.1295, allocations: 46.56 kB / 448.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 7.184e-06/0.1295, allocations: 3.984 kB / 448.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006223/0.1301, allocations: 217.6 kB / 449 MB, free: 10.76 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001878/0.1303, allocations: 199.9 kB / 449.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002141/0.1306, allocations: 175.1 kB / 449.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.802e-05/0.1306, allocations: 34.08 kB / 449.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.538e-05/0.1307, allocations: 108 kB / 449.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.817e-05/0.1307, allocations: 7.984 kB / 449.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.856e-05/0.1308, allocations: 41.66 kB / 449.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.131, allocations: 330.8 kB / 449.9 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.902e-05/0.1311, allocations: 19.98 kB / 449.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.1313, allocations: 134.4 kB / 450 MB, free: 9.598 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002367/0.1315, allocations: 165.5 kB / 450.2 MB, free: 9.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1315, allocations: 0 / 450.2 MB, free: 9.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002894/0.1318, allocations: 165.5 kB / 450.3 MB, free: 9.219 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.1319, allocations: 7.938 kB / 450.3 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.1319, allocations: 4 kB / 450.3 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.885e-05/0.1319, allocations: 4 kB / 450.4 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.1321, allocations: 39.92 kB / 450.4 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/0.1321, allocations: 7.938 kB / 450.4 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.065e-05/0.1322, allocations: 8 kB / 450.4 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.46e-05/0.1322, allocations: 11.98 kB / 450.4 MB, free: 9.137 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001296/0.1324, allocations: 134 kB / 450.5 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000293/0.1327, allocations: 149.3 kB / 450.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.915e-05/0.1327, allocations: 25.39 kB / 450.7 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1327, allocations: 4 kB / 450.7 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1327, allocations: 0 / 450.7 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.1328, allocations: 4 kB / 450.7 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005166/0.1333, allocations: 213.5 kB / 450.9 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.1333, allocations: 4 kB / 450.9 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.1334, allocations: 39.95 kB / 451 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.1334, allocations: 3.938 kB / 451 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.1335, allocations: 11.98 kB / 451 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.1335, allocations: 0 / 451 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.1335, allocations: 4 kB / 451 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004987/0.134, allocations: 361 kB / 451.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.1341, allocations: 105 kB / 451.5 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.43e-05/0.1342, allocations: 11.94 kB / 451.5 MB, free: 7.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.1343, allocations: 15.98 kB / 451.5 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.1344, allocations: 0 / 451.5 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.1344, allocations: 8 kB / 451.5 MB, free: 7.953 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000134/0.1345, allocations: 141.1 kB / 451.6 MB, free: 7.816 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1345, allocations: 0 / 451.6 MB, free: 7.816 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003282/0.1349, allocations: 20.09 kB / 451.6 MB, free: 7.797 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000159/0.135, allocations: 103.2 kB / 451.7 MB, free: 7.688 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003477/0.1354, allocations: 112.4 kB / 451.9 MB, free: 7.578 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.1354, allocations: 4 kB / 451.9 MB, free: 7.574 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.274e-05/0.1355, allocations: 15.92 kB / 451.9 MB, free: 7.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007326/0.1362, allocations: 103.9 kB / 452 MB, free: 7.457 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008705/0.1371, allocations: 355.8 kB / 452.3 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.1374, allocations: 0.7241 MB / 453 MB, free: 6.324 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.684e-05/0.1375, allocations: 17.91 kB / 453.1 MB, free: 6.305 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.407e-05/0.1376, allocations: 19.42 kB / 453.1 MB, free: 6.285 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1376, allocations: 0 / 453.1 MB, free: 6.285 MB / 334.1 MB Notification: Performance of Templates: time 0.004945/0.1425, allocations: 1.697 MB / 454.8 MB, free: 4.59 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches