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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001275/0.001275, allocations: 174 kB / 16.76 MB, free: 4.914 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.442/1.442, allocations: 205 MB / 222.6 MB, free: 9.125 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.0007491/0.0007491, allocations: 93.69 kB / 270.5 MB, free: 8.656 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.07297/0.07297, allocations: 12.57 MB / 331 MB, free: 12.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003535/0.0003535, allocations: 12 kB / 391.7 MB, free: 66.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08085/0.08122, allocations: 49.98 MB / 441.7 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.00194/0.08321, allocations: 1.626 MB / 443.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.08443, allocations: 0.9869 MB / 444.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.08454, allocations: 4 kB / 444.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005261/0.08508, allocations: 147.6 kB / 444.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002209/0.08531, allocations: 95.7 kB / 444.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.08576, allocations: 171.6 kB / 444.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001874/0.08596, allocations: 187.5 kB / 444.9 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.08609, allocations: 41.94 kB / 444.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.419e-05/0.08619, allocations: 63.66 kB / 445 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.427e-05/0.0863, allocations: 67.62 kB / 445.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/0.08633, allocations: 4 kB / 445.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.08644, allocations: 47.97 kB / 445.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.306e-05/0.0865, allocations: 35.84 kB / 445.2 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.569e-05/0.08656, allocations: 71.42 kB / 445.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.08672, allocations: 155.7 kB / 445.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.08674, allocations: 4 kB / 445.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.08674, allocations: 0 / 445.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.08675, allocations: 4 kB / 445.4 MB, free: 12.67 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.0005287/0.08729, allocations: 492.3 kB / 445.9 MB, free: 12.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.921e-05/0.08732, allocations: 8.031 kB / 445.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.867e-05/0.08738, allocations: 24.66 kB / 445.9 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002269/0.08761, allocations: 270.7 kB / 446.2 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.08764, allocations: 8.375 kB / 446.2 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.727e-05/0.08766, allocations: 12.12 kB / 446.2 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.08795, allocations: 171.5 kB / 446.3 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.08797, allocations: 0 / 446.3 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.08799, allocations: 4 kB / 446.3 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.088, allocations: 8 kB / 446.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.797e-05/0.08809, allocations: 35.92 kB / 446.4 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003551/0.08845, allocations: 375.2 kB / 446.8 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001811/0.08865, allocations: 134.5 kB / 446.9 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.35e-05/0.08873, allocations: 63.41 kB / 447 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.08876, allocations: 7.938 kB / 447 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001291/0.0889, allocations: 71.39 kB / 447 MB, free: 10.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.08891, allocations: 0 / 447 MB, free: 10.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003052/0.08922, allocations: 161.5 kB / 447.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.08927, allocations: 162.2 kB / 447.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.08947, allocations: 269 kB / 447.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.08949, allocations: 29.64 kB / 447.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.931e-05/0.08955, allocations: 124.2 kB / 447.8 MB, free: 9.984 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.08957, allocations: 19.83 kB / 447.8 MB, free: 9.965 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.378e-05/0.0896, allocations: 17.72 kB / 447.8 MB, free: 9.941 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.069e-05/0.08967, allocations: 338.8 kB / 448.1 MB, free: 9.602 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.513e-05/0.08973, allocations: 23.98 kB / 448.1 MB, free: 9.578 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.855e-05/0.0898, allocations: 83.66 kB / 448.2 MB, free: 9.469 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.08992, allocations: 93.91 kB / 448.3 MB, free: 9.355 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.08993, allocations: 0 / 448.3 MB, free: 9.355 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000175/0.09011, allocations: 137.3 kB / 448.5 MB, free: 9.215 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.09013, allocations: 4.938 kB / 448.5 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.09014, allocations: 4.312 kB / 448.5 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.09016, allocations: 0 / 448.5 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.967e-05/0.09023, allocations: 19.92 kB / 448.5 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.09024, allocations: 8 kB / 448.5 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.933e-05/0.09032, allocations: 11.94 kB / 448.5 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.09033, allocations: 4 kB / 448.5 MB, free: 9.164 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 ($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 8.52e-05/0.09042, allocations: 146.9 kB / 448.7 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.402e-05/0.0905, allocations: 77.34 kB / 448.7 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.164e-05/0.09055, allocations: 25.7 kB / 448.8 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.09056, allocations: 4 kB / 448.8 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.09057, allocations: 0 / 448.8 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.09058, allocations: 3.938 kB / 448.8 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001213/0.0907, allocations: 229.5 kB / 449 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.09071, allocations: 0 / 449 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.447e-05/0.09074, allocations: 12.03 kB / 449 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.09075, allocations: 4 kB / 449 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.09077, allocations: 7.984 kB / 449 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.09077, allocations: 4 kB / 449 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.09078, allocations: 0 / 449 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001923/0.09097, allocations: 175.3 kB / 449.2 MB, free: 8.398 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.98e-05/0.09104, allocations: 112.9 kB / 449.3 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.09108, allocations: 0 / 449.3 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.225e-05/0.09115, allocations: 8 kB / 449.3 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.485e-05/0.09119, allocations: 7.984 kB / 449.3 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.09121, allocations: 7.938 kB / 449.3 MB, free: 8.246 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001298/0.09134, allocations: 196.5 kB / 449.5 MB, free: 8.059 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.09135, allocations: 0 / 449.5 MB, free: 8.059 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002311/0.09158, allocations: 32 kB / 449.5 MB, free: 8.027 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 (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.00076/0.09235, allocations: 429.3 kB / 450 MB, free: 7.598 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001799/0.09254, allocations: 83.78 kB / 450 MB, free: 7.516 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.09255, allocations: 0 / 450 MB, free: 7.516 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.947e-05/0.09262, allocations: 23.98 kB / 450.1 MB, free: 7.492 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003971/0.09302, allocations: 80.88 kB / 450.1 MB, free: 7.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004439/0.09348, allocations: 409 kB / 450.5 MB, free: 6.969 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001294/0.09362, allocations: 0.7362 MB / 451.3 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.597e-05/0.09367, allocations: 23.44 kB / 451.3 MB, free: 6.188 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.09368, allocations: 0 / 451.3 MB, free: 6.188 MB / 298.7 MB Notification: Performance of Templates: time 0.003543/0.09723, allocations: 2.769 MB / 454.1 MB, free: 3.414 MB / 298.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches