Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.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.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001539/0.00154, allocations: 99.77 kB / 16.02 MB, free: 6.312 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.001999/0.001999, allocations: 193.4 kB / 16.95 MB, free: 6.148 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.721/1.721, allocations: 205.1 MB / 222.8 MB, free: 4.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07673/0.07673, allocations: 12.58 MB / 282.7 MB, free: 8.801 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.002995/0.002996, allocations: 87.88 kB / 343 MB, free: 21.09 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1161, allocations: 49.4 MB / 392.4 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked): time 0.003977/0.1201, allocations: 1.543 MB / 393.9 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005989/0.1208, allocations: 139.6 kB / 394.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.121, allocations: 7.938 kB / 394.1 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.413e-05/0.121, allocations: 3.938 kB / 394.1 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001919/0.1212, allocations: 0 / 394.1 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003427/0.1216, allocations: 35.91 kB / 394.1 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.1217, allocations: 27.92 kB / 394.1 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.1218, allocations: 11.98 kB / 394.1 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.686e-05/0.1219, allocations: 11.94 kB / 394.2 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.511e-05/0.1219, allocations: 11.94 kB / 394.2 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/0.1219, allocations: 3.938 kB / 394.2 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.354e-05/0.122, allocations: 4 kB / 394.2 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.198e-05/0.122, allocations: 15.97 kB / 394.2 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.91e-05/0.1221, allocations: 19.81 kB / 394.2 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001338/0.1222, allocations: 27.91 kB / 394.2 MB, free: 1.734 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.368e-06/0.1222, allocations: 3.984 kB / 394.2 MB, free: 1.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1222, allocations: 0 / 394.2 MB, free: 1.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.1222, allocations: 0 / 394.2 MB, free: 1.73 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005126/0.1228, allocations: 363.4 kB / 394.6 MB, free: 1.324 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1228, allocations: 12.03 kB / 394.6 MB, free: 1.312 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.947e-05/0.1229, allocations: 4.844 kB / 394.6 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002249/0.1231, allocations: 192.2 kB / 394.8 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.1231, allocations: 4.375 kB / 394.8 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.217e-06/0.1231, allocations: 384 / 394.8 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/0.1234, allocations: 93.61 kB / 394.9 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.1234, allocations: 192 / 394.9 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.1234, allocations: 3.938 kB / 394.9 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.1234, allocations: 0 / 394.9 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.515e-05/0.1235, allocations: 12 kB / 394.9 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003448/0.1239, allocations: 257.8 kB / 395.2 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.401e-05/0.1239, allocations: 45.09 kB / 395.2 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.517e-05/0.124, allocations: 13.84 kB / 395.2 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.124, allocations: 4 kB / 395.2 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.124, allocations: 34.5 kB / 395.3 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.124, allocations: 0 / 395.3 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002086/0.1243, allocations: 69.52 kB / 395.3 MB, free: 456 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.1243, allocations: 77.11 kB / 395.4 MB, free: 360 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.1245, allocations: 125.8 kB / 395.5 MB, free: 224 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.1245, allocations: 29.7 kB / 395.6 MB, free: 188 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.833e-05/0.1245, allocations: 84.14 kB / 395.6 MB, free: 100 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.04e-05/0.1246, allocations: 3.906 kB / 395.6 MB, free: 96 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.776e-05/0.1246, allocations: 21.97 kB / 395.7 MB, free: 68 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1248, allocations: 314.8 kB / 396 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.951e-05/0.1248, allocations: 4 kB / 396 MB, free: 15.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.052e-05/0.1248, allocations: 21.66 kB / 396 MB, free: 15.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.252e-05/0.1249, allocations: 29.58 kB / 396 MB, free: 15.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1249, allocations: 4.062 kB / 396 MB, free: 15.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.413e-05/0.125, allocations: 49.62 kB / 396.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.125, allocations: 8 kB / 396.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.125, allocations: 0 / 396.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.1251, allocations: 0 / 396.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.929e-05/0.1251, allocations: 7.938 kB / 396.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.1251, allocations: 0 / 396.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.481e-05/0.1251, allocations: 4 kB / 396.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.1252, allocations: 0 / 396.1 MB, free: 15.61 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.727e-05/0.1253, allocations: 129.8 kB / 396.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.143e-05/0.1253, allocations: 41.61 kB / 396.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.011e-05/0.1254, allocations: 3.531 kB / 396.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.1254, allocations: 4 kB / 396.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.1254, allocations: 3.984 kB / 396.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1254, allocations: 0 / 396.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001906/0.1256, allocations: 169.6 kB / 396.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1256, allocations: 0 / 396.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.843e-06/0.1256, allocations: 0 / 396.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1256, allocations: 8.031 kB / 396.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.1256, allocations: 0 / 396.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.1256, allocations: 3.938 kB / 396.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1257, allocations: 0 / 396.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001838/0.1258, allocations: 152.2 kB / 396.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-05/0.1259, allocations: 89.09 kB / 396.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.1259, allocations: 32 / 396.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.302e-05/0.126, allocations: 11.98 kB / 396.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.1261, allocations: 0 / 396.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-06/0.1261, allocations: 0 / 396.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.308e-05/0.1261, allocations: 103.3 kB / 396.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1261, allocations: 0 / 396.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002154/0.1264, allocations: 7.906 kB / 396.8 MB, free: 14.79 MB / 302.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: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001005/0.1265, allocations: 91.25 kB / 396.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001291/0.1266, allocations: 23.92 kB / 396.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1266, allocations: 0 / 396.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.1267, allocations: 4 kB / 396.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.1271, allocations: 32.83 kB / 397 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003438/0.1275, allocations: 158.6 kB / 397.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.1279, allocations: 0.6883 MB / 397.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.307e-05/0.1279, allocations: 4 kB / 397.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.887e-05/0.128, allocations: 11.44 kB / 397.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.128, allocations: 0 / 397.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of Templates: time 0.002631/0.1306, allocations: 414 kB / 398.2 MB, free: 13.32 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches