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.001673/0.001673, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002072/0.002072, allocations: 212.7 kB / 24.52 MB, free: 3.91 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.489/1.489, allocations: 230.5 MB / 258.2 MB, free: 7.793 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 59.89 kB / 378.5 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2464, allocations: 53.41 MB / 431.9 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002824/0.2492, allocations: 1.6 MB / 433.5 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009889/0.2502, allocations: 0.5259 MB / 434 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.798e-05/0.2502, allocations: 0 / 434 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.583e-05/0.2503, allocations: 7.875 kB / 434.1 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.2504, allocations: 11.92 kB / 434.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003047/0.2507, allocations: 59.81 kB / 434.1 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000107/0.2508, allocations: 59.72 kB / 434.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.386e-05/0.2509, allocations: 14.09 kB / 434.2 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.251, allocations: 31.86 kB / 434.2 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.597e-05/0.2511, allocations: 31.84 kB / 434.3 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.2511, allocations: 4 kB / 434.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.45e-05/0.2511, allocations: 4 kB / 434.3 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.46e-05/0.2512, allocations: 11.94 kB / 434.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.735e-05/0.2512, allocations: 27.84 kB / 434.3 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001423/0.2514, allocations: 67.67 kB / 434.4 MB, free: 3.984 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.2514, allocations: 3.984 kB / 434.4 MB, free: 3.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2514, allocations: 0 / 434.4 MB, free: 3.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.2514, allocations: 0 / 434.4 MB, free: 3.98 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.0004772/0.2518, allocations: 313.9 kB / 434.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.2519, allocations: 12.03 kB / 434.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.47e-05/0.2519, allocations: 192 / 434.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.521e-05/0.2519, allocations: 38.67 kB / 434.7 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.2521, allocations: 16.89 kB / 434.7 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002306/0.2523, allocations: 142.3 kB / 434.9 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.2523, allocations: 8.375 kB / 434.9 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.142e-05/0.2523, allocations: 4.375 kB / 434.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003254/0.2526, allocations: 141.8 kB / 435 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.2527, allocations: 0 / 435 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.2527, allocations: 0 / 435 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.2527, allocations: 0 / 435 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.597e-05/0.2528, allocations: 27.92 kB / 435.1 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003483/0.2531, allocations: 253.6 kB / 435.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001923/0.2533, allocations: 83.84 kB / 435.4 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.348e-05/0.2534, allocations: 34.56 kB / 435.4 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.955e-05/0.2534, allocations: 0 / 435.4 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.2534, allocations: 38.5 kB / 435.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 8.42e-07/0.2534, allocations: 0 / 435.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.000273/0.2537, allocations: 93.55 kB / 435.6 MB, free: 2.613 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.943e-05/0.2538, allocations: 114.8 kB / 435.7 MB, free: 2.477 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.2539, allocations: 140.9 kB / 435.8 MB, free: 2.332 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.2539, allocations: 29.95 kB / 435.8 MB, free: 2.297 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.248e-05/0.254, allocations: 92.14 kB / 435.9 MB, free: 2.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/0.254, allocations: 11.88 kB / 435.9 MB, free: 2.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.99e-05/0.2541, allocations: 25.67 kB / 436 MB, free: 2.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.2542, allocations: 322.8 kB / 436.3 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.686e-05/0.2543, allocations: 15.98 kB / 436.3 MB, free: 1.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.695e-05/0.2543, allocations: 44.27 kB / 436.3 MB, free: 1.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/0.2544, allocations: 68.16 kB / 436.4 MB, free: 1.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2544, allocations: 4 kB / 436.4 MB, free: 1.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001751/0.2546, allocations: 89.53 kB / 436.5 MB, free: 1.582 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.2546, allocations: 6.656 kB / 436.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.2546, allocations: 4 kB / 436.5 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.2546, allocations: 4 kB / 436.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.967e-05/0.2547, allocations: 8 kB / 436.5 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.2547, allocations: 8.062 kB / 436.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.093e-05/0.2548, allocations: 11.94 kB / 436.5 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.2548, allocations: 4 kB / 436.5 MB, free: 1.539 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.444e-05/0.2549, allocations: 122 kB / 436.7 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.852e-05/0.255, allocations: 57.64 kB / 436.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.651e-05/0.255, allocations: 12.34 kB / 436.7 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.255, allocations: 0 / 436.7 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.255, allocations: 4 kB / 436.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.255, allocations: 3.984 kB / 436.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.2552, allocations: 140.7 kB / 436.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2552, allocations: 0 / 436.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.538e-05/0.2553, allocations: 19.92 kB / 436.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.2553, allocations: 0 / 436.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.2553, allocations: 4 kB / 436.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.2553, allocations: 0 / 436.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2553, allocations: 0 / 436.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002045/0.2555, allocations: 189.2 kB / 437.1 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.147e-05/0.2555, allocations: 19.88 kB / 437.1 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/0.2555, allocations: 4 kB / 437.1 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.643e-05/0.2556, allocations: 7.984 kB / 437.1 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.76e-05/0.2556, allocations: 7.938 kB / 437.1 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.2557, allocations: 4 kB / 437.1 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.817e-05/0.2557, allocations: 107.2 kB / 437.2 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2557, allocations: 0 / 437.2 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002365/0.256, allocations: 15.94 kB / 437.2 MB, free: 0.7461 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.0006028/0.2566, allocations: 0.7415 MB / 438 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001661/0.2567, allocations: 56.16 kB / 438 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2567, allocations: 4.062 kB / 438 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.189e-05/0.2568, allocations: 12 kB / 438.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.2571, allocations: 35.5 kB / 438.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.2586, allocations: 1.455 MB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.468e-05/0.2587, allocations: 83.52 kB / 439.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.758e-05/0.2587, allocations: 7.984 kB / 439.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.006e-05/0.2588, allocations: 23.38 kB / 439.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2588, allocations: 0 / 439.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.2808, allocations: 1.994 MB / 441.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.22, allocations: 9.281 kB / 441.7 MB, free: 12.29 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] "" 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.851538507966325]