Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002081/0.002081, allocations: 109.3 kB / 16.45 MB, free: 6.488 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.003002/0.003002, allocations: 186 kB / 17.38 MB, free: 5.691 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.739/1.739, allocations: 205.1 MB / 223.3 MB, free: 12.21 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.07975/0.07975, allocations: 12.6 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.001795/0.001795, allocations: 92.97 kB / 394.2 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1138, allocations: 49.4 MB / 443.6 MB, free: 496 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.003409/0.1173, allocations: 1.911 MB / 445.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001916/0.1192, allocations: 1.006 MB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000166/0.1194, allocations: 7.938 kB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006734/0.1201, allocations: 155.5 kB / 446.6 MB, free: 13.38 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004128/0.1206, allocations: 107.6 kB / 446.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005705/0.1211, allocations: 187.5 kB / 446.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002951/0.1214, allocations: 187.5 kB / 447.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.1216, allocations: 41.64 kB / 447.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.1218, allocations: 83.62 kB / 447.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.1219, allocations: 71.69 kB / 447.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.937e-05/0.1219, allocations: 11.94 kB / 447.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001742/0.1221, allocations: 55.97 kB / 447.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.886e-05/0.1222, allocations: 47.83 kB / 447.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.069e-05/0.1223, allocations: 71.48 kB / 447.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004823/0.1228, allocations: 219.2 kB / 447.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1228, allocations: 7.938 kB / 447.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1228, allocations: 0 / 447.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.1229, allocations: 0 / 447.7 MB, free: 12.31 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001044/0.1239, allocations: 0.5156 MB / 448.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.124, allocations: 8.031 kB / 448.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.157e-05/0.1241, allocations: 24.66 kB / 448.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004602/0.1245, allocations: 274.8 kB / 448.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.1246, allocations: 8.375 kB / 448.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.54e-05/0.1246, allocations: 12.06 kB / 448.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004386/0.125, allocations: 167.6 kB / 448.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.1251, allocations: 4 kB / 448.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.1251, allocations: 0 / 448.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.1251, allocations: 3.938 kB / 448.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001227/0.1252, allocations: 35.98 kB / 448.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007727/0.126, allocations: 379.2 kB / 449.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.1263, allocations: 130.5 kB / 449.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.1264, allocations: 63.36 kB / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.1265, allocations: 3.984 kB / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001801/0.1267, allocations: 75.38 kB / 449.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/0.1267, allocations: 0 / 449.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004573/0.1271, allocations: 165.2 kB / 449.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001445/0.1273, allocations: 166.2 kB / 449.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003432/0.1277, allocations: 268.9 kB / 450 MB, free: 9.754 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.1277, allocations: 33.7 kB / 450 MB, free: 9.715 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.1278, allocations: 116.4 kB / 450.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.19e-05/0.1279, allocations: 20.11 kB / 450.1 MB, free: 9.578 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.031e-05/0.1279, allocations: 33.72 kB / 450.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.1281, allocations: 334.8 kB / 450.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.66e-05/0.1282, allocations: 27.98 kB / 450.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.1283, allocations: 75.72 kB / 450.6 MB, free: 9.074 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.1285, allocations: 93.91 kB / 450.7 MB, free: 8.961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.1285, allocations: 4 kB / 450.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002836/0.1288, allocations: 133.3 kB / 450.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.1289, allocations: 4 kB / 450.8 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.1289, allocations: 4 kB / 450.8 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.1289, allocations: 0 / 450.8 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.533e-05/0.129, allocations: 19.92 kB / 450.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.129, allocations: 4 kB / 450.9 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.737e-05/0.1291, allocations: 11.94 kB / 450.9 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.1291, allocations: 4.188 kB / 450.9 MB, free: 8.773 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001349/0.1293, allocations: 141.8 kB / 451 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.1294, allocations: 81.66 kB / 451.1 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.884e-05/0.1294, allocations: 25.7 kB / 451.1 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.1295, allocations: 0 / 451.1 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.1295, allocations: 8 kB / 451.1 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.1295, allocations: 3.938 kB / 451.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002398/0.1297, allocations: 233.6 kB / 451.4 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1297, allocations: 4.094 kB / 451.4 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.23e-05/0.1298, allocations: 7.938 kB / 451.4 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.1298, allocations: 7.938 kB / 451.4 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.1298, allocations: 4 kB / 451.4 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1298, allocations: 3.984 kB / 451.4 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1298, allocations: 4 kB / 451.4 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/0.1301, allocations: 179.2 kB / 451.6 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.1302, allocations: 108.9 kB / 451.7 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/0.1303, allocations: 4 kB / 451.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.934e-05/0.1304, allocations: 8 kB / 451.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.413e-05/0.1304, allocations: 7.984 kB / 451.7 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.1304, allocations: 7.938 kB / 451.7 MB, free: 7.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002055/0.1307, allocations: 196.5 kB / 451.9 MB, free: 7.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1307, allocations: 0 / 451.9 MB, free: 7.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002841/0.131, allocations: 36 kB / 451.9 MB, free: 7.609 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001032/0.132, allocations: 416.7 kB / 452.3 MB, free: 7.191 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002645/0.1323, allocations: 79.84 kB / 452.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.1323, allocations: 0 / 452.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.713e-05/0.1324, allocations: 24.36 kB / 452.4 MB, free: 7.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004997/0.1329, allocations: 74.34 kB / 452.5 MB, free: 7.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008153/0.1337, allocations: 325.6 kB / 452.8 MB, free: 6.668 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005806/0.1343, allocations: 0.74 MB / 453.6 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001242/0.1345, allocations: 29.52 kB / 453.6 MB, free: 5.863 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.845e-05/0.1345, allocations: 15.44 kB / 453.6 MB, free: 5.848 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1345, allocations: 4 kB / 453.6 MB, free: 5.844 MB / 334.1 MB Notification: Performance of Templates: time 0.007495/0.142, allocations: 2.73 MB / 456.3 MB, free: 3.113 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches