Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001645/0.001645, allocations: 107.9 kB / 16.45 MB, free: 6.441 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.001863/0.001863, allocations: 189.4 kB / 17.39 MB, free: 5.688 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.605/1.605, allocations: 205.1 MB / 223.3 MB, free: 12.2 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.08696/0.08696, allocations: 12.59 MB / 283.2 MB, free: 15.41 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.001911/0.001911, allocations: 90.89 kB / 394.2 MB, free: 45.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1359, allocations: 49.41 MB / 443.6 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.004299/0.1403, allocations: 1.836 MB / 445.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.1419, allocations: 0.7254 MB / 446.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.1421, allocations: 7.938 kB / 446.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002165/0.1423, allocations: 19.78 kB / 446.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001962/0.1425, allocations: 23.8 kB / 446.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006858/0.1432, allocations: 155.7 kB / 446.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002859/0.1435, allocations: 155.5 kB / 446.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002269/0.1437, allocations: 61.44 kB / 446.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.1439, allocations: 63.7 kB / 446.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/0.144, allocations: 55.7 kB / 446.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.492e-05/0.1441, allocations: 16 kB / 446.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001321/0.1442, allocations: 55.95 kB / 446.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.1443, allocations: 35.84 kB / 446.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.1444, allocations: 75.53 kB / 446.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00035/0.1448, allocations: 191.3 kB / 447 MB, free: 13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1448, allocations: 0 / 447 MB, free: 13 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.1448, allocations: 0 / 447 MB, free: 13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.1448, allocations: 0 / 447 MB, free: 13 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001088/0.1459, allocations: 478.8 kB / 447.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.146, allocations: 12.03 kB / 447.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.265e-05/0.1461, allocations: 16.75 kB / 447.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.1465, allocations: 240 kB / 447.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.1465, allocations: 8.562 kB / 447.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.1466, allocations: 20.06 kB / 447.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007555/0.1473, allocations: 328.1 kB / 448.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.1474, allocations: 0 / 448.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.1474, allocations: 8 kB / 448.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.1474, allocations: 0 / 448.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002748/0.1477, allocations: 91.81 kB / 448.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005957/0.1483, allocations: 345.5 kB / 448.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005847/0.1489, allocations: 266.2 kB / 448.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.1491, allocations: 97.67 kB / 448.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007339/0.1499, allocations: 0.5856 MB / 449.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.1499, allocations: 38.78 kB / 449.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.763e-06/0.1499, allocations: 0 / 449.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.000658/0.1506, allocations: 233.3 kB / 449.8 MB, free: 9.938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.1507, allocations: 122.7 kB / 449.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002164/0.151, allocations: 194.3 kB / 450.1 MB, free: 9.594 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.151, allocations: 25.7 kB / 450.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.55e-05/0.1511, allocations: 104.6 kB / 450.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.399e-05/0.1511, allocations: 15.89 kB / 450.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.224e-05/0.1512, allocations: 45.75 kB / 450.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1514, allocations: 330.8 kB / 450.6 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.62e-05/0.1515, allocations: 39.98 kB / 450.6 MB, free: 9.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.1517, allocations: 161.1 kB / 450.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002552/0.1519, allocations: 204 kB / 451 MB, free: 8.543 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1519, allocations: 4 kB / 451 MB, free: 8.539 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003317/0.1523, allocations: 217.5 kB / 451.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.1523, allocations: 12.5 kB / 451.2 MB, free: 8.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.1523, allocations: 7.938 kB / 451.2 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.371e-05/0.1524, allocations: 7.984 kB / 451.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.1525, allocations: 43.92 kB / 451.3 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.62e-05/0.1525, allocations: 8 kB / 451.3 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.1526, allocations: 19.83 kB / 451.3 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.1527, allocations: 15.94 kB / 451.3 MB, free: 8.207 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample.noise.seedState[3],sample.noise.seedState[3],$CLKPRE.sample.noise.seedState[2],sample.noise.seedState[2],$CLKPRE.sample.noise.seedState[1],sample.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[3],sample.noise.seedState[2],sample.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001493/0.1528, allocations: 153.7 kB / 451.5 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003101/0.1531, allocations: 157.3 kB / 451.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003947/0.1535, allocations: 179.4 kB / 451.8 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1536, allocations: 0 / 451.8 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1536, allocations: 0 / 451.8 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1536, allocations: 4 kB / 451.8 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002493/0.1538, allocations: 229.4 kB / 452 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.1539, allocations: 3.938 kB / 452 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.154, allocations: 43.91 kB / 452.1 MB, free: 7.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.154, allocations: 0 / 452.1 MB, free: 7.375 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.1541, allocations: 4 kB / 452.1 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.1541, allocations: 0 / 452.1 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.1541, allocations: 3.938 kB / 452.1 MB, free: 7.367 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004544/0.1545, allocations: 284.1 kB / 452.3 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.1546, allocations: 116.8 kB / 452.5 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.1547, allocations: 11.98 kB / 452.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.1548, allocations: 12 kB / 452.5 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.814e-05/0.1549, allocations: 0 / 452.5 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.1549, allocations: 7.984 kB / 452.5 MB, free: 6.906 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000145/0.1551, allocations: 152.1 kB / 452.6 MB, free: 6.758 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1551, allocations: 0 / 452.6 MB, free: 6.758 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003174/0.1554, allocations: 28 kB / 452.7 MB, free: 6.73 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001943/0.1556, allocations: 115.2 kB / 452.8 MB, free: 6.609 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003463/0.1559, allocations: 136.8 kB / 452.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.156, allocations: 0 / 452.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.236e-05/0.156, allocations: 23.98 kB / 452.9 MB, free: 6.453 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006151/0.1566, allocations: 149.5 kB / 453.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006538/0.1573, allocations: 328.9 kB / 453.4 MB, free: 5.949 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.1576, allocations: 0.74 MB / 454.1 MB, free: 5.184 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.422e-05/0.1577, allocations: 17.53 kB / 454.2 MB, free: 5.168 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.439e-05/0.1577, allocations: 15.44 kB / 454.2 MB, free: 5.152 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1577, allocations: 4 kB / 454.2 MB, free: 5.148 MB / 334.1 MB Notification: Performance of Templates: time 0.005978/0.1637, allocations: 2.362 MB / 456.5 MB, free: 2.785 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches