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.0008564/0.0008564, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008249/0.0008249, allocations: 174 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9142/0.9142, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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 1.603e-06/1.603e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.233e-05/2.394e-05, allocations: 2.281 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002468/0.002492, allocations: 1.624 MB / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008411/0.003333, allocations: 0.5257 MB / 326.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.003433, allocations: 0 / 326.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.33e-05/0.003487, allocations: 7.875 kB / 326.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.003668, allocations: 23.86 kB / 326.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003321/0.004, allocations: 63.69 kB / 326.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001202/0.00412, allocations: 59.77 kB / 326.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.004226, allocations: 8 kB / 326.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.004347, allocations: 35.95 kB / 326.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.23e-05/0.004399, allocations: 15.92 kB / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.551e-05/0.004414, allocations: 4 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.668e-05/0.004451, allocations: 8 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.729e-05/0.004498, allocations: 15.92 kB / 327 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.033e-05/0.004529, allocations: 19.91 kB / 327 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.00466, allocations: 67.78 kB / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.794e-06/0.004661, allocations: 0 / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.004663, allocations: 0 / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.004667, allocations: 0 / 327 MB, free: 13.43 MB / 298.7 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.0003944/0.005061, allocations: 313.9 kB / 327.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.005102, allocations: 11.97 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.143e-05/0.005133, allocations: 34.73 kB / 327.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.005239, allocations: 20.89 kB / 327.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001909/0.00543, allocations: 141.6 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.00544, allocations: 8.375 kB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.005452, allocations: 4.375 kB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.005693, allocations: 130.4 kB / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.005703, allocations: 4.125 kB / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.005713, allocations: 4.125 kB / 327.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.005719, allocations: 0 / 327.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.106e-05/0.00578, allocations: 27.98 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002846/0.006064, allocations: 245.7 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001431/0.006207, allocations: 79.7 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.731e-05/0.006255, allocations: 46.62 kB / 328.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.006274, allocations: 4 kB / 328.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.751e-05/0.006291, allocations: 34.56 kB / 328.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 9.02e-07/0.006292, allocations: 3.938 kB / 328.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001972/0.006489, allocations: 101.5 kB / 328.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.006548, allocations: 110.8 kB / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.809e-05/0.006636, allocations: 141.6 kB / 328.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.006646, allocations: 25.7 kB / 328.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.679e-05/0.006683, allocations: 88.14 kB / 328.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.006699, allocations: 11.89 kB / 328.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.006731, allocations: 21.64 kB / 328.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000341/0.007072, allocations: 318.8 kB / 328.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.975e-05/0.007102, allocations: 15.98 kB / 329 MB, free: 11.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.546e-05/0.007127, allocations: 21.95 kB / 329 MB, free: 11.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.371e-05/0.007181, allocations: 41.64 kB / 329 MB, free: 11.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.007183, allocations: 0 / 329 MB, free: 11.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.901e-05/0.007262, allocations: 73.56 kB / 329.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.007274, allocations: 4 kB / 329.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.007281, allocations: 4 kB / 329.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.007292, allocations: 0 / 329.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.189e-05/0.007334, allocations: 7.938 kB / 329.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.007339, allocations: 8.016 kB / 329.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.827e-05/0.007358, allocations: 0 / 329.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.007365, allocations: 7.984 kB / 329.1 MB, free: 11.1 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 5.989e-05/0.007425, allocations: 113.8 kB / 329.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.337e-05/0.007468, allocations: 57.58 kB / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.748e-05/0.007496, allocations: 12.34 kB / 329.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.007498, allocations: 0 / 329.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.007503, allocations: 4.375 kB / 329.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.007506, allocations: 0 / 329.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.007621, allocations: 152.6 kB / 329.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.007621, allocations: 0 / 329.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.814e-05/0.00765, allocations: 19.92 kB / 329.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.007652, allocations: 3.984 kB / 329.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.007665, allocations: 8 kB / 329.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.007666, allocations: 0 / 329.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.007667, allocations: 0 / 329.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001149/0.007782, allocations: 185.1 kB / 329.7 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.057e-05/0.007813, allocations: 19.94 kB / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.007825, allocations: 0 / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.488e-05/0.00786, allocations: 4 kB / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.703e-05/0.007887, allocations: 15.86 kB / 329.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.00789, allocations: 4 kB / 329.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.841e-05/0.007939, allocations: 113.8 kB / 329.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007939, allocations: 0 / 329.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001456/0.008085, allocations: 8 kB / 329.8 MB, free: 10.31 MB / 298.7 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.0003339/0.008418, allocations: 0.7375 MB / 330.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.812e-05/0.008517, allocations: 39.92 kB / 330.6 MB, free: 9.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.008518, allocations: 128 / 330.6 MB, free: 9.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.158e-05/0.00854, allocations: 15.92 kB / 330.6 MB, free: 9.484 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.008794, allocations: 28.02 kB / 330.6 MB, free: 9.457 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008627/0.009657, allocations: 1.397 MB / 332 MB, free: 7.961 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.65e-05/0.009714, allocations: 79.61 kB / 332.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.516e-05/0.009739, allocations: 8.125 kB / 332.1 MB, free: 7.852 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.995e-05/0.009779, allocations: 16.48 kB / 332.1 MB, free: 7.836 MB / 298.7 MB Notification: Performance of SimCode: time 4.1e-07/0.009779, allocations: 0 / 332.1 MB, free: 7.836 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01544/0.02522, allocations: 2.464 MB / 334.6 MB, free: 5.516 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.253/7.278, allocations: 3.234 kB / 334.6 MB, free: 5.516 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins/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: 8.986602202989161]