Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 181.6 kB / 16.45 MB, free: 5.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.559/1.559, allocations: 205.4 MB / 222.6 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007621/0.0007621, allocations: 92.92 kB / 270.9 MB, free: 8.344 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06901/0.06901, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006164/0.0006164, allocations: 20 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08192/0.08256, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.001575/0.08418, allocations: 1.571 MB / 443.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.08527, allocations: 0.9486 MB / 444.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.824e-05/0.08537, allocations: 7.938 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004263/0.08581, allocations: 123.7 kB / 445 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001924/0.08601, allocations: 103.6 kB / 445.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003662/0.08639, allocations: 163.7 kB / 445.3 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.08655, allocations: 175.4 kB / 445.5 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.572e-05/0.08664, allocations: 29.66 kB / 445.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.715e-05/0.08673, allocations: 67.66 kB / 445.6 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.899e-05/0.08681, allocations: 71.61 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.943e-05/0.08684, allocations: 4 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.229e-05/0.08694, allocations: 43.97 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.397e-05/0.08699, allocations: 39.84 kB / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.452e-05/0.08703, allocations: 49.64 kB / 445.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001475/0.08718, allocations: 155.9 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.0872, allocations: 0 / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.0872, allocations: 0 / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.08721, allocations: 0 / 445.9 MB, free: 12.89 MB / 298.7 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.0004949/0.08771, allocations: 492.1 kB / 446.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.751e-05/0.08775, allocations: 12.03 kB / 446.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.145e-05/0.0878, allocations: 19.72 kB / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.08803, allocations: 269.5 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.08806, allocations: 8 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.08808, allocations: 8 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.08835, allocations: 165 kB / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.08837, allocations: 4 kB / 446.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.08838, allocations: 0 / 446.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.08839, allocations: 4 kB / 446.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001067/0.08851, allocations: 39.92 kB / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003376/0.08885, allocations: 379.1 kB / 447.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001779/0.08904, allocations: 126.5 kB / 447.4 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.284e-05/0.08912, allocations: 59.42 kB / 447.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.08915, allocations: 0 / 447.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001229/0.08928, allocations: 83.31 kB / 447.5 MB, free: 11.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.954e-06/0.0893, allocations: 4 kB / 447.5 MB, free: 11.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002962/0.0896, allocations: 153.2 kB / 447.7 MB, free: 10.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.08965, allocations: 166.2 kB / 447.9 MB, free: 10.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.08985, allocations: 269 kB / 448.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.103e-05/0.08987, allocations: 25.7 kB / 448.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.652e-05/0.08992, allocations: 124.8 kB / 448.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.686e-05/0.08994, allocations: 23.83 kB / 448.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/0.08995, allocations: 0 / 448.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.131e-05/0.09, allocations: 326.8 kB / 448.6 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.557e-05/0.09006, allocations: 23.98 kB / 448.6 MB, free: 9.855 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.892e-05/0.09014, allocations: 87.66 kB / 448.7 MB, free: 9.742 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.185e-05/0.09021, allocations: 39.95 kB / 448.8 MB, free: 9.703 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.09021, allocations: 0 / 448.8 MB, free: 9.703 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001775/0.0904, allocations: 133.3 kB / 448.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.09042, allocations: 8 kB / 448.9 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.09043, allocations: 0 / 448.9 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.09044, allocations: 4 kB / 448.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.154e-05/0.09052, allocations: 12.31 kB / 448.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.09053, allocations: 3.984 kB / 448.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.216e-05/0.09061, allocations: 19.89 kB / 448.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.09062, allocations: 8 kB / 448.9 MB, free: 9.512 MB / 298.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.47e-05/0.09071, allocations: 150.5 kB / 449.1 MB, free: 9.355 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.218e-05/0.09079, allocations: 77.34 kB / 449.2 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.075e-05/0.09084, allocations: 25.7 kB / 449.2 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.09085, allocations: 4 kB / 449.2 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.09086, allocations: 0 / 449.2 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.09087, allocations: 7.984 kB / 449.2 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001221/0.09099, allocations: 225.5 kB / 449.4 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.091, allocations: 4 kB / 449.4 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.749e-05/0.09103, allocations: 4 kB / 449.4 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.09104, allocations: 8.031 kB / 449.4 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.09106, allocations: 8 kB / 449.4 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.09106, allocations: 0 / 449.4 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.09107, allocations: 4 kB / 449.4 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.09126, allocations: 179.3 kB / 449.6 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.888e-05/0.09133, allocations: 108.8 kB / 449.7 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.628e-05/0.09137, allocations: 8 kB / 449.7 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.629e-05/0.09144, allocations: 4 kB / 449.7 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.212e-05/0.09148, allocations: 11.92 kB / 449.8 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.09149, allocations: 4 kB / 449.8 MB, free: 8.586 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001285/0.09163, allocations: 200.5 kB / 450 MB, free: 8.395 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09163, allocations: 0 / 450 MB, free: 8.395 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002222/0.09186, allocations: 24 kB / 450 MB, free: 8.371 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006993/0.09257, allocations: 426.2 kB / 450.4 MB, free: 7.945 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000173/0.09275, allocations: 79.78 kB / 450.5 MB, free: 7.867 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.09276, allocations: 0 / 450.5 MB, free: 7.867 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.73e-05/0.09282, allocations: 23.98 kB / 450.5 MB, free: 7.844 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003656/0.0932, allocations: 68.86 kB / 450.6 MB, free: 7.773 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004092/0.09362, allocations: 406.5 kB / 451 MB, free: 7.336 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.09375, allocations: 0.7284 MB / 451.7 MB, free: 6.582 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.575e-05/0.09379, allocations: 27.44 kB / 451.7 MB, free: 6.559 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.0938, allocations: 0 / 451.7 MB, free: 6.559 MB / 298.7 MB Notification: Performance of Templates: time 0.003436/0.09724, allocations: 2.766 MB / 454.5 MB, free: 3.785 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches