Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 101.5 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 188.4 kB / 24.49 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 225.7 MB / 253.3 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 51.91 kB / 371.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2421, allocations: 52.19 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002756/0.2449, allocations: 1.591 MB / 425 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007955/0.2457, allocations: 458.9 kB / 425.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.872e-05/0.2458, allocations: 11.94 kB / 425.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.533e-05/0.2458, allocations: 7.922 kB / 425.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001215/0.2459, allocations: 7.875 kB / 425.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.2462, allocations: 53.95 kB / 425.5 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001113/0.2464, allocations: 55.83 kB / 425.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.19e-05/0.2464, allocations: 10.3 kB / 425.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.556e-05/0.2465, allocations: 23.86 kB / 425.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.502e-05/0.2466, allocations: 23.86 kB / 425.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.2466, allocations: 7.984 kB / 425.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.347e-05/0.2466, allocations: 4 kB / 425.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.036e-05/0.2467, allocations: 19.92 kB / 425.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.931e-05/0.2467, allocations: 19.86 kB / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001206/0.2468, allocations: 63.67 kB / 425.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2468, allocations: 0 / 425.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2468, allocations: 0 / 425.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.2468, allocations: 4 kB / 425.7 MB, free: 12.05 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.000452/0.2473, allocations: 309.9 kB / 426 MB, free: 11.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.2473, allocations: 8.031 kB / 426 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.385e-05/0.2473, allocations: 192 / 426 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.064e-05/0.2474, allocations: 38.75 kB / 426.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.731e-05/0.2474, allocations: 16.83 kB / 426.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001957/0.2476, allocations: 130.4 kB / 426.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.2476, allocations: 8.375 kB / 426.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.2476, allocations: 12.05 kB / 426.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/0.2479, allocations: 133.8 kB / 426.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.2479, allocations: 0 / 426.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.2479, allocations: 8 kB / 426.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.2479, allocations: 0 / 426.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.747e-05/0.248, allocations: 27.91 kB / 426.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003152/0.2483, allocations: 241.7 kB / 426.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001816/0.2485, allocations: 79.72 kB / 426.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.358e-05/0.2486, allocations: 38.62 kB / 426.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.2486, allocations: 7.984 kB / 426.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.2486, allocations: 34.56 kB / 426.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.213e-06/0.2486, allocations: 4 kB / 426.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002634/0.2489, allocations: 97.55 kB / 426.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.841e-05/0.249, allocations: 114.7 kB / 427 MB, free: 10.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.2491, allocations: 140.7 kB / 427.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.2491, allocations: 25.7 kB / 427.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.114e-05/0.2491, allocations: 92.08 kB / 427.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.2492, allocations: 11.94 kB / 427.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.925e-05/0.2492, allocations: 21.67 kB / 427.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.2493, allocations: 327 kB / 427.6 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.635e-05/0.2494, allocations: 12 kB / 427.6 MB, free: 9.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.129e-05/0.2494, allocations: 52.27 kB / 427.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001099/0.2496, allocations: 64.2 kB / 427.7 MB, free: 9.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2496, allocations: 0 / 427.7 MB, free: 9.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001744/0.2497, allocations: 89.5 kB / 427.8 MB, free: 9.672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.2497, allocations: 4 kB / 427.8 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.2498, allocations: 4 kB / 427.8 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2498, allocations: 0 / 427.8 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.026e-05/0.2498, allocations: 12 kB / 427.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.2498, allocations: 11.92 kB / 427.8 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.49e-05/0.2499, allocations: 3.938 kB / 427.8 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.2499, allocations: 4 kB / 427.9 MB, free: 9.633 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.04e-05/0.25, allocations: 121.8 kB / 428 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.886e-05/0.2501, allocations: 53.77 kB / 428 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.011e-05/0.2501, allocations: 16.33 kB / 428 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.2501, allocations: 4 kB / 428 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2501, allocations: 0 / 428 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.2501, allocations: 0 / 428 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.2503, allocations: 152.6 kB / 428.2 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2503, allocations: 0 / 428.2 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.669e-05/0.2504, allocations: 11.94 kB / 428.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.2504, allocations: 4 kB / 428.2 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.2504, allocations: 0 / 428.2 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2504, allocations: 0 / 428.2 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2504, allocations: 4 kB / 428.2 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001993/0.2506, allocations: 189.1 kB / 428.4 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.749e-05/0.2506, allocations: 15.95 kB / 428.4 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.2506, allocations: 3.984 kB / 428.4 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.433e-05/0.2507, allocations: 8.062 kB / 428.4 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.672e-05/0.2507, allocations: 7.938 kB / 428.4 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-06/0.2507, allocations: 4 kB / 428.4 MB, free: 8.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.717e-05/0.2508, allocations: 114.6 kB / 428.5 MB, free: 8.852 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2508, allocations: 0 / 428.5 MB, free: 8.852 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002237/0.251, allocations: 8 kB / 428.6 MB, free: 8.844 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.0005552/0.2516, allocations: 0.7495 MB / 429.3 MB, free: 8.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001512/0.2517, allocations: 55.84 kB / 429.4 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.2517, allocations: 0 / 429.4 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.965e-05/0.2518, allocations: 8 kB / 429.4 MB, free: 8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.2521, allocations: 24.45 kB / 429.4 MB, free: 7.977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.2535, allocations: 1.455 MB / 430.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.618e-05/0.2536, allocations: 79.19 kB / 430.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.751e-05/0.2536, allocations: 4 kB / 430.9 MB, free: 6.305 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.019e-05/0.2537, allocations: 31.36 kB / 431 MB, free: 6.273 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2537, allocations: 0 / 431 MB, free: 6.273 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02157/0.2752, allocations: 1.968 MB / 432.9 MB, free: 4.461 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.87, allocations: 11.94 kB / 432.9 MB, free: 4.449 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.238643188029528]