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.001274/0.001274, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001419/0.001419, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.375/1.375, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.001485/0.001485, allocations: 43.92 kB / 378.6 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.243, allocations: 53.37 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002858/0.2459, allocations: 1.631 MB / 433.6 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.247, allocations: 0.5648 MB / 434.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.873e-05/0.2471, allocations: 0 / 434.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.904e-05/0.2472, allocations: 15.8 kB / 434.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001327/0.2473, allocations: 11.94 kB / 434.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003418/0.2476, allocations: 59.81 kB / 434.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.2477, allocations: 51.83 kB / 434.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.2478, allocations: 12 kB / 434.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.248, allocations: 31.8 kB / 434.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.442e-05/0.2481, allocations: 27.84 kB / 434.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.2481, allocations: 4 kB / 434.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.131e-05/0.2481, allocations: 8 kB / 434.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.738e-05/0.2482, allocations: 11.98 kB / 434.4 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.64e-05/0.2482, allocations: 39.73 kB / 434.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.2484, allocations: 68.03 kB / 434.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.2484, allocations: 0 / 434.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2484, allocations: 0 / 434.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.2484, allocations: 4 kB / 434.5 MB, free: 4.336 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.0004849/0.2489, allocations: 305.9 kB / 434.8 MB, free: 4.008 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.2489, allocations: 8.031 kB / 434.8 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.592e-05/0.2489, allocations: 4.188 kB / 434.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.225e-05/0.249, allocations: 38.69 kB / 434.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001383/0.2491, allocations: 24.88 kB / 434.8 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002414/0.2493, allocations: 145.4 kB / 435 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.93e-06/0.2493, allocations: 384 / 435 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/0.2494, allocations: 8.375 kB / 435 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000273/0.2496, allocations: 133.8 kB / 435.1 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.2496, allocations: 0 / 435.1 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.2497, allocations: 11.92 kB / 435.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.2497, allocations: 0 / 435.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.786e-05/0.2497, allocations: 23.98 kB / 435.2 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003203/0.2501, allocations: 257.6 kB / 435.4 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.2502, allocations: 79.7 kB / 435.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.443e-05/0.2503, allocations: 38.69 kB / 435.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.494e-05/0.2503, allocations: 0 / 435.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.2504, allocations: 34.56 kB / 435.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 9.02e-07/0.2504, allocations: 0 / 435.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002736/0.2506, allocations: 97.67 kB / 435.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.332e-05/0.2507, allocations: 119 kB / 435.8 MB, free: 2.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.2508, allocations: 133.8 kB / 435.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.2509, allocations: 29.7 kB / 435.9 MB, free: 2.652 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.539e-05/0.2509, allocations: 92.12 kB / 436 MB, free: 2.559 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.414e-05/0.2509, allocations: 15.88 kB / 436 MB, free: 2.543 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.873e-05/0.251, allocations: 17.72 kB / 436.1 MB, free: 2.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.2511, allocations: 322.8 kB / 436.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.836e-05/0.2512, allocations: 15.98 kB / 436.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.723e-05/0.2512, allocations: 48.28 kB / 436.4 MB, free: 2.117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.2513, allocations: 64.22 kB / 436.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2514, allocations: 0 / 436.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001709/0.2515, allocations: 93.5 kB / 436.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.2515, allocations: 8 kB / 436.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.2515, allocations: 0 / 436.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.2516, allocations: 0 / 436.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.69e-05/0.2516, allocations: 11.98 kB / 436.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.2516, allocations: 7.938 kB / 436.6 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.491e-05/0.2517, allocations: 12.02 kB / 436.6 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.2517, allocations: 4 kB / 436.6 MB, free: 1.898 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.681e-05/0.2518, allocations: 125.8 kB / 436.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.615e-05/0.2519, allocations: 61.58 kB / 436.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.952e-05/0.2519, allocations: 8.344 kB / 436.8 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2519, allocations: 4 kB / 436.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2519, allocations: 0 / 436.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.2519, allocations: 0 / 436.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.2521, allocations: 148.7 kB / 437 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2521, allocations: 8 kB / 437 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.869e-05/0.2522, allocations: 11.94 kB / 437 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2522, allocations: 0 / 437 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.2522, allocations: 3.984 kB / 437 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2522, allocations: 0 / 437 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.2522, allocations: 4 kB / 437 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002088/0.2524, allocations: 189.1 kB / 437.2 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.976e-05/0.2525, allocations: 19.94 kB / 437.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.2525, allocations: 0 / 437.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.908e-05/0.2525, allocations: 7.938 kB / 437.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.699e-05/0.2526, allocations: 0 / 437.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.2526, allocations: 7.984 kB / 437.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.64e-05/0.2527, allocations: 109.7 kB / 437.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2527, allocations: 0 / 437.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002284/0.2529, allocations: 11.94 kB / 437.3 MB, free: 1.105 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.0005587/0.2534, allocations: 0.7571 MB / 438.1 MB, free: 324 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000161/0.2536, allocations: 52.05 kB / 438.1 MB, free: 272 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2536, allocations: 0 / 438.1 MB, free: 272 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.402e-05/0.2536, allocations: 11.98 kB / 438.2 MB, free: 260 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.254, allocations: 34.81 kB / 438.2 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.2554, allocations: 1.455 MB / 439.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.2557, allocations: 0.7039 MB / 440.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.203e-05/0.2558, allocations: 7.781 kB / 440.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.003e-05/0.2558, allocations: 23.42 kB / 440.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2558, allocations: 0 / 440.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.2772, allocations: 1.952 MB / 442.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.72, allocations: 7.625 kB / 442.3 MB, free: 12.09 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.100188078999054]