Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000962/0.0009621, allocations: 178 kB / 16.76 MB, free: 5.043 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.415/1.415, allocations: 205 MB / 222.5 MB, free: 9.141 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.000714/0.000714, allocations: 96.97 kB / 270.5 MB, free: 8.668 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.07596/0.07596, allocations: 12.57 MB / 331 MB, free: 12.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003288/0.0003288, allocations: 8.375 kB / 391.7 MB, free: 66.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06229/0.06264, allocations: 49.98 MB / 441.7 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.001531/0.06419, allocations: 1.574 MB / 443.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008241/0.06504, allocations: 0.6477 MB / 443.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.06519, allocations: 7.938 kB / 443.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001255/0.06533, allocations: 19.86 kB / 443.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.06545, allocations: 19.84 kB / 444 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.06575, allocations: 83.88 kB / 444 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000133/0.06589, allocations: 135.6 kB / 444.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.06603, allocations: 57.69 kB / 444.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.678e-05/0.06611, allocations: 39.73 kB / 444.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.439e-05/0.06618, allocations: 47.7 kB / 444.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.956e-05/0.06621, allocations: 4 kB / 444.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.633e-05/0.06623, allocations: 4 kB / 444.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.552e-05/0.06628, allocations: 19.86 kB / 444.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.801e-05/0.06633, allocations: 47.56 kB / 444.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.914e-05/0.06642, allocations: 100 kB / 444.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.06643, allocations: 4 kB / 444.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.06644, allocations: 0 / 444.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.06645, allocations: 0 / 444.5 MB, free: 13.58 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0004208/0.06687, allocations: 427.1 kB / 444.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.06691, allocations: 12.03 kB / 444.9 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.974e-05/0.06696, allocations: 20.66 kB / 444.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001934/0.06716, allocations: 252.7 kB / 445.2 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.06718, allocations: 12.12 kB / 445.2 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.0672, allocations: 8 kB / 445.2 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004504/0.06766, allocations: 286.8 kB / 445.5 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.06768, allocations: 0 / 445.5 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.0677, allocations: 7.984 kB / 445.5 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.06771, allocations: 8 kB / 445.5 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.0679, allocations: 79.83 kB / 445.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000317/0.06823, allocations: 427.5 kB / 446 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003525/0.06859, allocations: 314.2 kB / 446.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.06876, allocations: 116.2 kB / 446.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.06878, allocations: 0 / 446.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.499e-05/0.06881, allocations: 46.56 kB / 446.5 MB, free: 11.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.122e-06/0.06881, allocations: 0 / 446.5 MB, free: 11.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004682/0.06929, allocations: 241.2 kB / 446.7 MB, free: 11.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.06934, allocations: 199.9 kB / 446.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.06947, allocations: 175 kB / 447.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.06949, allocations: 29.98 kB / 447.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.576e-05/0.06953, allocations: 104.5 kB / 447.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.06956, allocations: 19.83 kB / 447.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.289e-05/0.06959, allocations: 17.72 kB / 447.2 MB, free: 10.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.987e-05/0.06963, allocations: 330.8 kB / 447.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.626e-05/0.06969, allocations: 27.92 kB / 447.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.241e-05/0.06978, allocations: 134.5 kB / 447.7 MB, free: 9.953 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.06993, allocations: 165.5 kB / 447.9 MB, free: 9.742 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.06994, allocations: 11.94 kB / 447.9 MB, free: 9.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002121/0.07016, allocations: 153.7 kB / 448 MB, free: 9.574 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.07018, allocations: 16 kB / 448 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.07019, allocations: 4 kB / 448.1 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.07021, allocations: 4 kB / 448.1 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.07032, allocations: 31.92 kB / 448.1 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.07034, allocations: 11.98 kB / 448.1 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.587e-05/0.07043, allocations: 15.91 kB / 448.1 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.07044, allocations: 8 kB / 448.1 MB, free: 9.484 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 7.178e-05/0.07052, allocations: 138.6 kB / 448.3 MB, free: 9.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002353/0.07076, allocations: 157.3 kB / 448.4 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.496e-05/0.07081, allocations: 21.39 kB / 448.4 MB, free: 9.156 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.07082, allocations: 4 kB / 448.4 MB, free: 9.152 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.07082, allocations: 0 / 448.4 MB, free: 9.152 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.07083, allocations: 4 kB / 448.4 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.07103, allocations: 213.5 kB / 448.6 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.07104, allocations: 8.031 kB / 448.7 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.07117, allocations: 35.97 kB / 448.7 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.07118, allocations: 7.938 kB / 448.7 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.07119, allocations: 4 kB / 448.7 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.0712, allocations: 7.938 kB / 448.7 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.07121, allocations: 0 / 448.7 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002932/0.07151, allocations: 367.8 kB / 449.1 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.478e-05/0.07157, allocations: 112.8 kB / 449.2 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.0716, allocations: 11.94 kB / 449.2 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001387/0.07174, allocations: 11.98 kB / 449.2 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.728e-05/0.07178, allocations: 7.938 kB / 449.2 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.07179, allocations: 8 kB / 449.2 MB, free: 8.277 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.723e-05/0.07186, allocations: 137.1 kB / 449.4 MB, free: 8.145 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07187, allocations: 0 / 449.4 MB, free: 8.145 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002891/0.07216, allocations: 27.91 kB / 449.4 MB, free: 8.117 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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 6.406e-05/0.07223, allocations: 95.34 kB / 449.5 MB, free: 8.016 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002281/0.07247, allocations: 128.6 kB / 449.6 MB, free: 7.891 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.07248, allocations: 0 / 449.6 MB, free: 7.891 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.978e-05/0.07252, allocations: 15.94 kB / 449.6 MB, free: 7.875 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005761/0.07311, allocations: 107.6 kB / 449.7 MB, free: 7.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007035/0.07382, allocations: 454.2 kB / 450.2 MB, free: 7.277 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000124/0.07396, allocations: 0.7241 MB / 450.9 MB, free: 6.527 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.199e-05/0.074, allocations: 19.44 kB / 450.9 MB, free: 6.512 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.074, allocations: 4 kB / 450.9 MB, free: 6.508 MB / 298.7 MB Notification: Performance of Templates: time 0.002422/0.07643, allocations: 1.747 MB / 452.7 MB, free: 4.758 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches