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.001775/0.001775, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001377/0.001377, allocations: 209.4 kB / 23.73 MB, free: 4.523 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.388/1.388, allocations: 230.6 MB / 257.5 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 43.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2504, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003196/0.2535, allocations: 1.612 MB / 432.7 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.2547, allocations: 0.5181 MB / 433.2 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.778e-05/0.2548, allocations: 7.938 kB / 433.2 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.181e-05/0.2548, allocations: 11.92 kB / 433.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001484/0.255, allocations: 7.875 kB / 433.2 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003854/0.2553, allocations: 71.73 kB / 433.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001236/0.2555, allocations: 51.78 kB / 433.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.2556, allocations: 8 kB / 433.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.2557, allocations: 31.91 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.455e-05/0.2558, allocations: 19.86 kB / 433.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.487e-05/0.2558, allocations: 4 kB / 433.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.4e-05/0.2558, allocations: 8 kB / 433.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.192e-05/0.2559, allocations: 19.92 kB / 433.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.631e-05/0.2559, allocations: 35.73 kB / 433.5 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001734/0.2561, allocations: 57.42 kB / 433.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2561, allocations: 0 / 433.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2561, allocations: 0 / 433.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.022e-06/0.2561, allocations: 0 / 433.5 MB, free: 4.172 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.0005061/0.2566, allocations: 321.9 kB / 433.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.2567, allocations: 8.031 kB / 433.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.091e-05/0.2567, allocations: 38.75 kB / 433.9 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.2568, allocations: 16.88 kB / 433.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002511/0.2571, allocations: 149 kB / 434.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.2571, allocations: 4.375 kB / 434.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.425e-05/0.2571, allocations: 8.375 kB / 434.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003021/0.2574, allocations: 134 kB / 434.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.2574, allocations: 0 / 434.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.2574, allocations: 0 / 434.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.2574, allocations: 4 kB / 434.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.027e-05/0.2575, allocations: 31.92 kB / 434.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003503/0.2579, allocations: 241.7 kB / 434.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002117/0.2581, allocations: 83.77 kB / 434.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.868e-05/0.2582, allocations: 34.62 kB / 434.6 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.2582, allocations: 4 kB / 434.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.2582, allocations: 42.44 kB / 434.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.282e-06/0.2582, allocations: 0 / 434.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002969/0.2585, allocations: 97.55 kB / 434.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.335e-05/0.2586, allocations: 106.8 kB / 434.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.2587, allocations: 137.8 kB / 435 MB, free: 2.523 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.2588, allocations: 29.7 kB / 435 MB, free: 2.488 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.845e-05/0.2588, allocations: 96.05 kB / 435.1 MB, free: 2.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.2589, allocations: 15.89 kB / 435.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.708e-05/0.2589, allocations: 25.66 kB / 435.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.259, allocations: 318.8 kB / 435.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.584e-05/0.2591, allocations: 24.17 kB / 435.5 MB, free: 2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.573e-05/0.2592, allocations: 44.28 kB / 435.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001153/0.2593, allocations: 64.22 kB / 435.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2593, allocations: 0 / 435.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001724/0.2595, allocations: 85.64 kB / 435.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.2595, allocations: 4 kB / 435.7 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.2595, allocations: 4 kB / 435.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.2595, allocations: 0 / 435.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.642e-05/0.2596, allocations: 11.98 kB / 435.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.2596, allocations: 0 / 435.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.963e-05/0.2596, allocations: 7.953 kB / 435.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.2596, allocations: 12 kB / 435.7 MB, free: 1.734 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.0001283/0.2598, allocations: 125.8 kB / 435.8 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.457e-05/0.2599, allocations: 53.81 kB / 435.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.977e-05/0.2599, allocations: 16.42 kB / 435.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.2599, allocations: 7.984 kB / 435.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2599, allocations: 0 / 435.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.2599, allocations: 0 / 435.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.2601, allocations: 144.7 kB / 436 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2601, allocations: 0 / 436 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.607e-05/0.2602, allocations: 11.98 kB / 436.1 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.2602, allocations: 4 kB / 436.1 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.2602, allocations: 4 kB / 436.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2602, allocations: 0 / 436.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2602, allocations: 0 / 436.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002105/0.2604, allocations: 193.1 kB / 436.3 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.29e-05/0.2604, allocations: 23.88 kB / 436.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.2604, allocations: 0 / 436.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.978e-05/0.2605, allocations: 4 kB / 436.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.063e-05/0.2605, allocations: 3.984 kB / 436.3 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.2606, allocations: 8 kB / 436.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.306e-05/0.2606, allocations: 106 kB / 436.4 MB, free: 0.957 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2606, allocations: 4 kB / 436.4 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002285/0.2609, allocations: 4 kB / 436.4 MB, free: 0.9492 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.0005814/0.2614, allocations: 0.7686 MB / 437.2 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.2616, allocations: 39.92 kB / 437.2 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2616, allocations: 0 / 437.2 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.57e-05/0.2616, allocations: 15.92 kB / 437.2 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.262, allocations: 32 kB / 437.3 MB, free: 64 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.2635, allocations: 1.451 MB / 438.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001/0.2636, allocations: 87.38 kB / 438.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.336e-05/0.2636, allocations: 4.125 kB / 438.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.155e-05/0.2636, allocations: 19.42 kB / 438.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2636, allocations: 0 / 438.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02811/0.2918, allocations: 2.381 MB / 441.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.62, allocations: 3.938 kB / 441.2 MB, free: 12.12 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] Reference file matches [Calling sys.exit(0), Time elapsed: 12.94128961401293]