Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00165/0.00165, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001922/0.001922, allocations: 215.1 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 55.91 kB / 377.8 MB, free: 3.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2509, allocations: 53.41 MB / 431.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003932/0.2548, allocations: 1.94 MB / 433.1 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002605/0.2574, allocations: 1.331 MB / 434.5 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001946/0.2576, allocations: 7.938 kB / 434.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000384/0.258, allocations: 71.64 kB / 434.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005003/0.2585, allocations: 139.4 kB / 434.7 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007786/0.2593, allocations: 227 kB / 434.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003487/0.2596, allocations: 195.4 kB / 435.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.2598, allocations: 25.73 kB / 435.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.2599, allocations: 79.69 kB / 435.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.2601, allocations: 87.61 kB / 435.3 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.589e-05/0.2601, allocations: 12 kB / 435.3 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002074/0.2603, allocations: 79.88 kB / 435.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.267e-05/0.2604, allocations: 47.84 kB / 435.4 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.987e-05/0.2605, allocations: 83.41 kB / 435.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004409/0.261, allocations: 259.2 kB / 435.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.261, allocations: 0 / 435.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.261, allocations: 0 / 435.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.261, allocations: 0 / 435.7 MB, free: 2.137 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.001009/0.262, allocations: 482.5 kB / 436.2 MB, free: 1.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.2621, allocations: 11.97 kB / 436.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.324e-05/0.2621, allocations: 42.75 kB / 436.3 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.274e-05/0.2622, allocations: 28.75 kB / 436.3 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005971/0.2628, allocations: 237.5 kB / 436.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.2628, allocations: 4.375 kB / 436.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.995e-05/0.2628, allocations: 8.375 kB / 436.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004623/0.2633, allocations: 180.5 kB / 436.7 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.2633, allocations: 3.938 kB / 436.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.15e-05/0.2634, allocations: 0 / 436.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.2634, allocations: 0 / 436.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.2635, allocations: 47.91 kB / 436.8 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000712/0.2642, allocations: 437.6 kB / 437.2 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003091/0.2645, allocations: 146.5 kB / 437.3 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.2646, allocations: 55.42 kB / 437.4 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.2647, allocations: 12.05 kB / 437.4 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.2649, allocations: 105 kB / 437.5 MB, free: 156 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 2.094e-06/0.2649, allocations: 0 / 437.5 MB, free: 156 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004968/0.2654, allocations: 165.4 kB / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.2656, allocations: 192.2 kB / 437.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004191/0.266, allocations: 340.2 kB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.266, allocations: 25.7 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.2662, allocations: 140.3 kB / 438.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.155e-05/0.2662, allocations: 15.91 kB / 438.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.294e-05/0.2663, allocations: 37.64 kB / 438.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.2665, allocations: 334.8 kB / 438.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.961e-05/0.2665, allocations: 27.98 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.2667, allocations: 103.7 kB / 438.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001917/0.2669, allocations: 101.3 kB / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2669, allocations: 0 / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002939/0.2672, allocations: 137.4 kB / 439.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.2672, allocations: 8 kB / 439.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2672, allocations: 0 / 439.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.2672, allocations: 8.156 kB / 439.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.2674, allocations: 23.98 kB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.2674, allocations: 0 / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.173e-05/0.2674, allocations: 15.89 kB / 439.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.2675, allocations: 7.938 kB / 439.1 MB, free: 14.37 MB / 350.1 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,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.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.0001658/0.2676, allocations: 157.8 kB / 439.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.2677, allocations: 69.5 kB / 439.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002829/0.268, allocations: 123.5 kB / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.268, allocations: 4 kB / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.268, allocations: 0 / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.268, allocations: 0 / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002732/0.2683, allocations: 224.6 kB / 439.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.2683, allocations: 0 / 439.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.169e-05/0.2684, allocations: 19.92 kB / 439.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.2684, allocations: 4 kB / 439.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.2684, allocations: 0 / 439.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.2684, allocations: 4.125 kB / 439.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.2684, allocations: 8 kB / 439.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003149/0.2687, allocations: 187.3 kB / 439.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.2688, allocations: 51.7 kB / 440 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.543e-05/0.2689, allocations: 4 kB / 440 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.958e-05/0.269, allocations: 8 kB / 440 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.269, allocations: 7.984 kB / 440 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.269, allocations: 15.98 kB / 440 MB, free: 13.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002759/0.2693, allocations: 247 kB / 440.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2693, allocations: 0 / 440.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002963/0.2696, allocations: 39.92 kB / 440.3 MB, free: 13.13 MB / 350.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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.002201/0.2718, allocations: 1.03 MB / 441.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002629/0.2721, allocations: 75.91 kB / 441.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.2721, allocations: 12.25 kB / 441.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.2722, allocations: 31.92 kB / 441.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.2726, allocations: 76.16 kB / 441.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002921/0.2755, allocations: 2.3 MB / 443.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.276, allocations: 0.7437 MB / 444.6 MB, free: 8.816 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.2761, allocations: 29.62 kB / 444.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.2762, allocations: 63.41 kB / 444.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2762, allocations: 0 / 444.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03536/0.3116, allocations: 5.684 MB / 450.3 MB, free: 3.086 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.16, allocations: 4.062 kB / 450.3 MB, free: 3.082 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.632424536859617]