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.001489/0.001489, allocations: 104 kB / 16.45 MB, free: 6.445 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.001467/0.001468, allocations: 190 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.715/1.715, allocations: 205.1 MB / 223.3 MB, free: 12.23 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.08434/0.08434, 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.002154/0.002154, allocations: 83.42 kB / 394.2 MB, free: 45.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.127, allocations: 49.41 MB / 443.6 MB, free: 480 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.004178/0.1312, allocations: 1.836 MB / 445.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.133, allocations: 0.7293 MB / 446.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002211/0.1333, allocations: 0 / 446.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002239/0.1335, allocations: 23.73 kB / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002429/0.1338, allocations: 19.8 kB / 446.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007334/0.1345, allocations: 159.6 kB / 446.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000316/0.1349, allocations: 155.5 kB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002256/0.1351, allocations: 65.44 kB / 446.6 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.1353, allocations: 59.7 kB / 446.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.1354, allocations: 55.7 kB / 446.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.854e-05/0.1355, allocations: 16 kB / 446.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.1356, allocations: 55.91 kB / 446.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.482e-05/0.1357, allocations: 43.89 kB / 446.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.541e-05/0.1358, allocations: 71.53 kB / 446.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003521/0.1362, allocations: 191.3 kB / 447 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1362, allocations: 0 / 447 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1362, allocations: 0 / 447 MB, free: 12.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.1362, allocations: 0 / 447 MB, free: 12.99 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.0009975/0.1372, allocations: 478.8 kB / 447.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.1373, allocations: 8.031 kB / 447.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.293e-05/0.1373, allocations: 16.75 kB / 447.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004165/0.1378, allocations: 248 kB / 447.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.1378, allocations: 4.562 kB / 447.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.885e-05/0.1378, allocations: 12.12 kB / 447.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00076/0.1386, allocations: 336.1 kB / 448.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.1386, allocations: 4 kB / 448.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/0.1387, allocations: 3.984 kB / 448.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.1387, allocations: 4 kB / 448.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.1389, allocations: 79.95 kB / 448.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005923/0.1395, allocations: 353.4 kB / 448.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005184/0.1401, allocations: 270.4 kB / 448.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001957/0.1403, allocations: 101.7 kB / 448.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007251/0.141, allocations: 0.5817 MB / 449.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.141, allocations: 38.56 kB / 449.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.603e-06/0.1411, allocations: 0 / 449.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006347/0.1417, allocations: 237.2 kB / 449.8 MB, free: 9.914 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.1418, allocations: 114.8 kB / 449.9 MB, free: 9.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.142, allocations: 194.3 kB / 450.1 MB, free: 9.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.1421, allocations: 29.7 kB / 450.1 MB, free: 9.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.358e-05/0.1421, allocations: 100.6 kB / 450.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.125e-05/0.1422, allocations: 15.89 kB / 450.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.1e-05/0.1423, allocations: 41.73 kB / 450.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1424, allocations: 330.8 kB / 450.6 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.71e-05/0.1425, allocations: 43.84 kB / 450.6 MB, free: 9.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.1427, allocations: 165.1 kB / 450.8 MB, free: 8.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002371/0.1429, allocations: 204 kB / 451 MB, free: 8.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.1429, allocations: 4 kB / 451 MB, free: 8.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000354/0.1433, allocations: 217.5 kB / 451.2 MB, free: 8.301 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.1433, allocations: 8.469 kB / 451.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.1433, allocations: 8.031 kB / 451.2 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.1434, allocations: 11.98 kB / 451.2 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.1435, allocations: 39.92 kB / 451.3 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.1435, allocations: 4 kB / 451.3 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/0.1436, allocations: 19.84 kB / 451.3 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.1437, allocations: 15.98 kB / 451.3 MB, free: 8.195 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.0001551/0.1438, allocations: 145.7 kB / 451.4 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002966/0.1441, allocations: 165.2 kB / 451.6 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003648/0.1445, allocations: 179.4 kB / 451.8 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1445, allocations: 4 kB / 451.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1445, allocations: 0 / 451.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1445, allocations: 0 / 451.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/0.1448, allocations: 233.4 kB / 452 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.1448, allocations: 3.938 kB / 452 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.145, allocations: 31.92 kB / 452 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.145, allocations: 8 kB / 452.1 MB, free: 7.363 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.145, allocations: 3.984 kB / 452.1 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.145, allocations: 0 / 452.1 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.145, allocations: 4 kB / 452.1 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004119/0.1454, allocations: 276.1 kB / 452.3 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.969e-05/0.1455, allocations: 124.8 kB / 452.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.439e-05/0.1456, allocations: 8 kB / 452.5 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.1457, allocations: 15.98 kB / 452.5 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.939e-05/0.1458, allocations: 4 kB / 452.5 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.1458, allocations: 4 kB / 452.5 MB, free: 6.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001244/0.1459, allocations: 152.1 kB / 452.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1459, allocations: 0 / 452.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003143/0.1462, allocations: 32 kB / 452.7 MB, free: 6.715 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.0002397/0.1465, allocations: 119.1 kB / 452.8 MB, free: 6.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003548/0.1468, allocations: 143.7 kB / 452.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1469, allocations: 1.188 kB / 452.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.599e-05/0.1469, allocations: 4 kB / 452.9 MB, free: 6.445 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006198/0.1475, allocations: 157.6 kB / 453.1 MB, free: 6.285 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000627/0.1482, allocations: 332.9 kB / 453.4 MB, free: 5.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.1485, allocations: 0.7321 MB / 454.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.929e-05/0.1485, allocations: 13.56 kB / 454.2 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.105e-05/0.1486, allocations: 23.36 kB / 454.2 MB, free: 5.137 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1486, allocations: 0 / 454.2 MB, free: 5.137 MB / 334.1 MB Notification: Performance of Templates: time 0.006303/0.1549, allocations: 2.432 MB / 456.6 MB, free: 2.703 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