Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 212.6 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.372/1.372, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 43.94 kB / 378.5 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.256, allocations: 53.35 MB / 431.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002834/0.2588, allocations: 1.612 MB / 433.5 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009538/0.2598, allocations: 0.522 MB / 434 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.043e-05/0.2599, allocations: 3.938 kB / 434 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.603e-05/0.2599, allocations: 7.938 kB / 434 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.26, allocations: 15.88 kB / 434 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003062/0.2603, allocations: 63.73 kB / 434.1 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.2605, allocations: 51.84 kB / 434.1 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.725e-05/0.2605, allocations: 14.05 kB / 434.1 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.2606, allocations: 27.92 kB / 434.2 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.155e-05/0.2607, allocations: 31.83 kB / 434.2 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.539e-05/0.2607, allocations: 4 kB / 434.2 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.554e-05/0.2608, allocations: 4 kB / 434.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.629e-05/0.2608, allocations: 19.94 kB / 434.2 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.632e-05/0.2608, allocations: 23.8 kB / 434.3 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.261, allocations: 67.67 kB / 434.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.261, allocations: 0 / 434.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.578e-06/0.261, allocations: 3.984 kB / 434.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.261, allocations: 0 / 434.3 MB, free: 4.168 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.0004505/0.2614, allocations: 306 kB / 434.6 MB, free: 3.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.2615, allocations: 12.03 kB / 434.6 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.336e-05/0.2615, allocations: 4.125 kB / 434.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.682e-05/0.2615, allocations: 42.73 kB / 434.7 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.2617, allocations: 16.89 kB / 434.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/0.2619, allocations: 148.9 kB / 434.8 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.2619, allocations: 4.375 kB / 434.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.2619, allocations: 8.359 kB / 434.9 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002797/0.2622, allocations: 133.8 kB / 435 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.2622, allocations: 0 / 435 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.176e-06/0.2622, allocations: 4 kB / 435 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2622, allocations: 0 / 435 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.682e-05/0.2623, allocations: 27.92 kB / 435 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003128/0.2626, allocations: 249.7 kB / 435.3 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.2628, allocations: 79.78 kB / 435.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.233e-05/0.2629, allocations: 34.62 kB / 435.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.2629, allocations: 0 / 435.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.2629, allocations: 42.5 kB / 435.4 MB, free: 2.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 9.22e-07/0.2629, allocations: 7.938 kB / 435.4 MB, free: 2.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002661/0.2632, allocations: 93.55 kB / 435.5 MB, free: 2.797 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.101e-05/0.2632, allocations: 106.8 kB / 435.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.2634, allocations: 141.8 kB / 435.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.2634, allocations: 29.7 kB / 435.8 MB, free: 2.484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.711e-05/0.2634, allocations: 84.14 kB / 435.9 MB, free: 2.398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/0.2635, allocations: 15.88 kB / 435.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.245e-05/0.2635, allocations: 33.59 kB / 435.9 MB, free: 2.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.2636, allocations: 327 kB / 436.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.052e-05/0.2637, allocations: 15.98 kB / 436.3 MB, free: 2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.729e-05/0.2637, allocations: 44.28 kB / 436.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001107/0.2638, allocations: 60.22 kB / 436.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2638, allocations: 0 / 436.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001606/0.264, allocations: 89.55 kB / 436.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.264, allocations: 7.984 kB / 436.4 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.264, allocations: 4 kB / 436.5 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.264, allocations: 0 / 436.5 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.39e-05/0.2641, allocations: 8 kB / 436.5 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.2641, allocations: 0 / 436.5 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.014e-05/0.2642, allocations: 11.94 kB / 436.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.2642, allocations: 4 kB / 436.5 MB, free: 1.738 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 9.218e-05/0.2643, allocations: 126 kB / 436.6 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.902e-05/0.2643, allocations: 61.69 kB / 436.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.646e-05/0.2644, allocations: 16.34 kB / 436.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.2644, allocations: 4 kB / 436.7 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2644, allocations: 0 / 436.7 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.2644, allocations: 3.984 kB / 436.7 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.2646, allocations: 140.7 kB / 436.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2646, allocations: 0 / 436.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.515e-05/0.2646, allocations: 11.98 kB / 436.8 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.2646, allocations: 4 kB / 436.8 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.2646, allocations: 0 / 436.8 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2646, allocations: 0 / 436.8 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2646, allocations: 4 kB / 436.8 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001989/0.2648, allocations: 193.1 kB / 437 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.063e-05/0.2649, allocations: 19.94 kB / 437 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.2649, allocations: 0 / 437 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.342e-05/0.265, allocations: 7.984 kB / 437.1 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.77e-05/0.265, allocations: 3.938 kB / 437.1 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.265, allocations: 4 kB / 437.1 MB, free: 1.062 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.88e-05/0.2651, allocations: 114 kB / 437.2 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2651, allocations: 0 / 437.2 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002277/0.2653, allocations: 15.94 kB / 437.2 MB, free: 0.9375 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.0005537/0.2659, allocations: 0.757 MB / 437.9 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001459/0.266, allocations: 43.91 kB / 438 MB, free: 108 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.266, allocations: 0 / 438 MB, free: 108 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.994e-05/0.266, allocations: 11.94 kB / 438 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.2664, allocations: 34.5 kB / 438 MB, free: 64 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.2678, allocations: 1.462 MB / 439.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.974e-05/0.2679, allocations: 83.39 kB / 439.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.95e-05/0.2679, allocations: 3.984 kB / 439.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.67e-05/0.2679, allocations: 23.44 kB / 439.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2679, allocations: 0 / 439.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02145/0.2894, allocations: 2.008 MB / 441.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.8, allocations: 4.062 kB / 441.6 MB, free: 12.5 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,clockToSquareWave.y Variables in the result:clockToSquareWave.u,clockToSquareWave.y,clockToSquareWave.y2,clockToSquareWave.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(clockToSquareWave.y2),sample1.u,sample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.217972193961032]