Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.001384/0.001384, allocations: 111.1 kB / 20.44 MB, free: 1.051 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.001761/0.001761, allocations: 211.9 kB / 23.73 MB, free: 4.152 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.443/1.443, allocations: 230.5 MB / 257.4 MB, free: 7.805 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.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 63.91 kB / 377.7 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2574, allocations: 53.4 MB / 431.1 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003252/0.2607, allocations: 1.604 MB / 432.8 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.2618, allocations: 0.5298 MB / 433.3 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.384e-05/0.2618, allocations: 3.938 kB / 433.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.662e-05/0.2619, allocations: 3.938 kB / 433.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.262, allocations: 15.86 kB / 433.3 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.2624, allocations: 55.83 kB / 433.4 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001172/0.2625, allocations: 55.78 kB / 433.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.414e-05/0.2626, allocations: 19.97 kB / 433.4 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.2627, allocations: 27.86 kB / 433.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.867e-05/0.2627, allocations: 27.8 kB / 433.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.2628, allocations: 4 kB / 433.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.949e-05/0.2628, allocations: 7.984 kB / 433.5 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.642e-05/0.2629, allocations: 19.92 kB / 433.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.904e-05/0.2629, allocations: 15.88 kB / 433.5 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.2631, allocations: 73.34 kB / 433.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2631, allocations: 0 / 433.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2631, allocations: 0 / 433.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.2631, allocations: 0 / 433.6 MB, free: 4.027 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005141/0.2636, allocations: 310 kB / 433.9 MB, free: 3.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.2636, allocations: 15.98 kB / 433.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.074e-05/0.2637, allocations: 38.67 kB / 434 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.2638, allocations: 20.89 kB / 434 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.2641, allocations: 142.3 kB / 434.1 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.2641, allocations: 8.375 kB / 434.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.2641, allocations: 4.375 kB / 434.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.2644, allocations: 138 kB / 434.3 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.2644, allocations: 0 / 434.3 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.2644, allocations: 4 kB / 434.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.2644, allocations: 0 / 434.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.883e-05/0.2645, allocations: 23.92 kB / 434.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003516/0.2649, allocations: 249.7 kB / 434.5 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.2651, allocations: 83.72 kB / 434.6 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.802e-05/0.2652, allocations: 34.69 kB / 434.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.2652, allocations: 4 kB / 434.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.2652, allocations: 38.5 kB / 434.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.2652, allocations: 0 / 434.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002936/0.2655, allocations: 101.5 kB / 434.8 MB, free: 2.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.616e-05/0.2656, allocations: 102.8 kB / 434.9 MB, free: 2.527 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.2657, allocations: 145.2 kB / 435 MB, free: 2.379 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.2657, allocations: 33.64 kB / 435.1 MB, free: 2.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.244e-05/0.2658, allocations: 92.14 kB / 435.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.2658, allocations: 11.88 kB / 435.2 MB, free: 2.234 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.271e-05/0.2658, allocations: 25.67 kB / 435.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.266, allocations: 326.7 kB / 435.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.292e-05/0.266, allocations: 12 kB / 435.5 MB, free: 1.863 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.68e-05/0.2661, allocations: 44.28 kB / 435.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001179/0.2662, allocations: 64.22 kB / 435.6 MB, free: 1.727 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2662, allocations: 0 / 435.6 MB, free: 1.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000172/0.2664, allocations: 89.53 kB / 435.7 MB, free: 1.633 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.2664, allocations: 11.94 kB / 435.7 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.2664, allocations: 0 / 435.7 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.2664, allocations: 4 kB / 435.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.888e-05/0.2665, allocations: 8 kB / 435.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.2665, allocations: 4.125 kB / 435.7 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.104e-05/0.2665, allocations: 11.94 kB / 435.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.2665, allocations: 0 / 435.8 MB, free: 1.594 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001051/0.2666, allocations: 125.7 kB / 435.9 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.857e-05/0.2667, allocations: 57.64 kB / 435.9 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.509e-05/0.2668, allocations: 12.34 kB / 436 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.2668, allocations: 3.984 kB / 436 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2668, allocations: 0 / 436 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.2668, allocations: 4 kB / 436 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001946/0.267, allocations: 144.7 kB / 436.1 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.267, allocations: 4 kB / 436.1 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.025e-05/0.267, allocations: 11.98 kB / 436.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.267, allocations: 0 / 436.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.267, allocations: 0 / 436.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.267, allocations: 4 kB / 436.1 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.2671, allocations: 3.938 kB / 436.1 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/0.2673, allocations: 193.1 kB / 436.3 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.401e-05/0.2673, allocations: 19.94 kB / 436.3 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.2673, allocations: 0 / 436.3 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.303e-05/0.2674, allocations: 7.984 kB / 436.3 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.677e-05/0.2674, allocations: 4 kB / 436.3 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.2674, allocations: 4 kB / 436.3 MB, free: 0.918 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.026e-05/0.2675, allocations: 107.2 kB / 436.5 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2675, allocations: 0 / 436.5 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002326/0.2678, allocations: 12 kB / 436.5 MB, free: 0.8008 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 0.0006468/0.2684, allocations: 0.7534 MB / 437.2 MB, free: 16 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001955/0.2686, allocations: 52.08 kB / 437.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2686, allocations: 0 / 437.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.553e-05/0.2687, allocations: 15.94 kB / 437.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.269, allocations: 43.31 kB / 437.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.2707, allocations: 1.444 MB / 438.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.2708, allocations: 87.58 kB / 438.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.728e-05/0.2708, allocations: 3.984 kB / 438.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.479e-05/0.2709, allocations: 19.44 kB / 438.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2709, allocations: 0 / 438.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02941/0.3003, allocations: 2.34 MB / 441.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.2, allocations: 3.375 kB / 441.2 MB, free: 11.99 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.696867583785206]