Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.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: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 181.2 kB / 16.12 MB, free: 5.688 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.349/1.349, allocations: 205 MB / 221.9 MB, free: 9.148 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.0007027/0.0007027, allocations: 105.6 kB / 269.9 MB, free: 8.664 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.06516/0.06516, allocations: 12.56 MB / 330.3 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003851/0.0003851, allocations: 15.98 kB / 391.2 MB, free: 66.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06459/0.06499, allocations: 49.97 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.001485/0.06651, allocations: 1.617 MB / 442.7 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.06759, allocations: 1.065 MB / 443.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.011e-05/0.06768, allocations: 3.938 kB / 443.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002265/0.06792, allocations: 63.78 kB / 443.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.06807, allocations: 75.73 kB / 444 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004497/0.06853, allocations: 219.6 kB / 444.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001326/0.06867, allocations: 155.5 kB / 444.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.127e-05/0.06876, allocations: 41.8 kB / 444.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.761e-05/0.06883, allocations: 63.59 kB / 444.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.187e-05/0.06891, allocations: 75.67 kB / 444.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.865e-05/0.06893, allocations: 4 kB / 444.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.544e-05/0.06904, allocations: 55.91 kB / 444.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.539e-05/0.0691, allocations: 51.83 kB / 444.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.429e-05/0.06916, allocations: 75.41 kB / 444.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.06934, allocations: 215.2 kB / 444.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.06935, allocations: 0 / 444.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.06936, allocations: 0 / 444.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.417e-06/0.06937, allocations: 0 / 444.9 MB, free: 12.52 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.0004352/0.06981, allocations: 0.5079 MB / 445.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.866e-05/0.06984, allocations: 8.031 kB / 445.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.733e-05/0.06988, allocations: 38.75 kB / 445.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.055e-05/0.06992, allocations: 28.66 kB / 445.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000226/0.07016, allocations: 287.5 kB / 445.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.07018, allocations: 4.375 kB / 445.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.496e-05/0.0702, allocations: 11.94 kB / 445.8 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002547/0.07046, allocations: 185.8 kB / 445.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.07047, allocations: 0 / 445.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.07049, allocations: 0 / 445.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.0705, allocations: 4 kB / 446 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.453e-05/0.0706, allocations: 39.92 kB / 446 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003522/0.07096, allocations: 470.5 kB / 446.5 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001894/0.07116, allocations: 146.5 kB / 446.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.23e-05/0.07124, allocations: 55.42 kB / 446.6 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.328e-05/0.07127, allocations: 4 kB / 446.7 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.07143, allocations: 101 kB / 446.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.372e-06/0.07144, allocations: 3.938 kB / 446.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003064/0.07175, allocations: 169.2 kB / 446.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.384e-05/0.07181, allocations: 191.9 kB / 447.1 MB, free: 9.984 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.07203, allocations: 335 kB / 447.4 MB, free: 9.648 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.07204, allocations: 25.7 kB / 447.5 MB, free: 9.617 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.966e-05/0.0721, allocations: 132.3 kB / 447.6 MB, free: 9.484 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.834e-05/0.07212, allocations: 23.8 kB / 447.6 MB, free: 9.461 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.308e-05/0.07215, allocations: 21.72 kB / 447.6 MB, free: 9.434 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.051e-05/0.0722, allocations: 330.8 kB / 448 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.956e-05/0.07226, allocations: 27.98 kB / 448 MB, free: 9.074 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.787e-05/0.07235, allocations: 103.6 kB / 448.1 MB, free: 8.945 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001219/0.07248, allocations: 93.33 kB / 448.2 MB, free: 8.836 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.07249, allocations: 0 / 448.2 MB, free: 8.836 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001886/0.07268, allocations: 141.2 kB / 448.3 MB, free: 8.691 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/0.0727, allocations: 7.938 kB / 448.3 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.07271, allocations: 4 kB / 448.3 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.177e-06/0.07272, allocations: 0 / 448.3 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.213e-05/0.07282, allocations: 27.92 kB / 448.4 MB, free: 8.652 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.07283, allocations: 0 / 448.4 MB, free: 8.652 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.821e-05/0.0729, allocations: 16.14 kB / 448.4 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-06/0.07292, allocations: 11.98 kB / 448.4 MB, free: 8.625 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample.y,hold.y,hold.u,shiftSample.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.506e-05/0.07301, allocations: 154.6 kB / 448.5 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.605e-05/0.07308, allocations: 73.34 kB / 448.6 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.968e-05/0.07313, allocations: 25.7 kB / 448.6 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.07314, allocations: 4 kB / 448.6 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.07314, allocations: 0 / 448.6 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.07315, allocations: 8 kB / 448.6 MB, free: 8.352 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001267/0.07328, allocations: 245.6 kB / 448.9 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.07329, allocations: 0 / 448.9 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.845e-05/0.07336, allocations: 15.98 kB / 448.9 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.07336, allocations: 0 / 448.9 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.398e-06/0.07338, allocations: 7.938 kB / 448.9 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.07339, allocations: 0 / 448.9 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.07339, allocations: 4 kB / 448.9 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002046/0.0736, allocations: 187.2 kB / 449.1 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.093e-05/0.07367, allocations: 116.8 kB / 449.2 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.0737, allocations: 4 kB / 449.2 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.368e-05/0.07377, allocations: 11.98 kB / 449.2 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.837e-05/0.07382, allocations: 11.88 kB / 449.2 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.07384, allocations: 7.984 kB / 449.2 MB, free: 7.656 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001615/0.074, allocations: 245.9 kB / 449.5 MB, free: 7.414 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07401, allocations: 3.938 kB / 449.5 MB, free: 7.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002262/0.07424, allocations: 36 kB / 449.5 MB, free: 7.375 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.0009584/0.07521, allocations: 1.032 MB / 450.6 MB, free: 6.305 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001726/0.07539, allocations: 83.89 kB / 450.6 MB, free: 6.223 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.0754, allocations: 0 / 450.6 MB, free: 6.223 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.341e-05/0.07548, allocations: 39.92 kB / 450.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000347/0.07583, allocations: 69.23 kB / 450.7 MB, free: 6.117 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/0.07753, allocations: 2.306 MB / 453 MB, free: 3.684 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.07766, allocations: 0.744 MB / 453.8 MB, free: 2.914 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.105e-05/0.07774, allocations: 25.53 kB / 453.8 MB, free: 2.891 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.744e-05/0.07781, allocations: 55.42 kB / 453.9 MB, free: 2.84 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.07782, allocations: 4 kB / 453.9 MB, free: 2.836 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4536/0.5314, allocations: 4.877 MB / 458.7 MB, free: 13.94 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003758/0.5319, allocations: 264.1 kB / 459 MB, free: 13.59 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.981/2.513, allocations: 0 / 459 MB, free: 13.59 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches