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.002098/0.002098, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.002584/0.002584, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.384/1.384, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001444/0.001444, allocations: 55.91 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09161/0.09306, allocations: 53.32 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002696/0.09575, allocations: 1.607 MB / 427.9 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009673/0.09672, allocations: 0.5648 MB / 428.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.64e-05/0.09679, allocations: 7.938 kB / 428.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.297e-05/0.09683, allocations: 7.922 kB / 428.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001191/0.09695, allocations: 19.88 kB / 428.5 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002899/0.09724, allocations: 67.73 kB / 428.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001067/0.09735, allocations: 51.78 kB / 428.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.247e-05/0.09743, allocations: 8 kB / 428.6 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.09753, allocations: 27.92 kB / 428.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.643e-05/0.09759, allocations: 27.84 kB / 428.7 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.499e-05/0.0976, allocations: 4 kB / 428.7 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.691e-05/0.09764, allocations: 7.984 kB / 428.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.924e-05/0.09768, allocations: 11.94 kB / 428.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.072e-05/0.09772, allocations: 31.8 kB / 428.8 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.09786, allocations: 71.61 kB / 428.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.09786, allocations: 0 / 428.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.09786, allocations: 0 / 428.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.09786, allocations: 0 / 428.8 MB, free: 2.27 MB / 350.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.0004666/0.09833, allocations: 391 kB / 429.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.09836, allocations: 12.03 kB / 429.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.682e-05/0.0984, allocations: 30.75 kB / 429.2 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.09854, allocations: 28.88 kB / 429.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/0.09877, allocations: 200.2 kB / 429.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.09878, allocations: 8.375 kB / 429.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-06/0.09879, allocations: 4.312 kB / 429.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/0.09906, allocations: 138 kB / 429.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.09906, allocations: 0 / 429.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.006e-06/0.09907, allocations: 3.984 kB / 429.6 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.09908, allocations: 4 kB / 429.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.198e-05/0.09917, allocations: 27.91 kB / 429.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003166/0.09949, allocations: 282.6 kB / 429.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.0997, allocations: 156.8 kB / 430.1 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.598e-05/0.09978, allocations: 34.69 kB / 430.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.0998, allocations: 0 / 430.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.09982, allocations: 46.5 kB / 430.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.12e-07/0.09982, allocations: 0 / 430.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002698/0.1001, allocations: 97.48 kB / 430.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.645e-05/0.1002, allocations: 106.8 kB / 430.4 MB, free: 476 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.1003, allocations: 136 kB / 430.5 MB, free: 332 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.1003, allocations: 37.7 kB / 430.5 MB, free: 288 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.721e-05/0.1004, allocations: 88.12 kB / 430.6 MB, free: 196 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.1004, allocations: 19.81 kB / 430.6 MB, free: 176 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-05/0.1004, allocations: 17.72 kB / 430.7 MB, free: 152 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1006, allocations: 326.8 kB / 431 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.378e-05/0.1006, allocations: 15.98 kB / 431 MB, free: 15.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.668e-05/0.1007, allocations: 48.22 kB / 431 MB, free: 15.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001146/0.1008, allocations: 60.22 kB / 431.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.1008, allocations: 0 / 431.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001651/0.101, allocations: 89.56 kB / 431.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.101, allocations: 10.19 kB / 431.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.101, allocations: 3.938 kB / 431.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.101, allocations: 0 / 431.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.726e-05/0.1011, allocations: 11.98 kB / 431.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.1011, allocations: 4 kB / 431.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.841e-05/0.1011, allocations: 7.953 kB / 431.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.1011, allocations: 0 / 431.2 MB, free: 15.54 MB / 366.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.613e-05/0.1012, allocations: 133.9 kB / 431.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.5e-05/0.1013, allocations: 57.58 kB / 431.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.422e-05/0.1013, allocations: 8.531 kB / 431.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.1013, allocations: 4 kB / 431.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1013, allocations: 0 / 431.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.1014, allocations: 3.984 kB / 431.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001888/0.1015, allocations: 177.6 kB / 431.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1015, allocations: 4 kB / 431.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.462e-05/0.1016, allocations: 7.984 kB / 431.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.1016, allocations: 8 kB / 431.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.1016, allocations: 4 kB / 431.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1016, allocations: 0 / 431.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.1016, allocations: 8 kB / 431.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002078/0.1018, allocations: 185.1 kB / 431.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.112e-05/0.1019, allocations: 97.05 kB / 431.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.1019, allocations: 4 kB / 431.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.905e-05/0.102, allocations: 3.938 kB / 431.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.856e-05/0.102, allocations: 7.984 kB / 431.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.102, allocations: 0 / 431.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.848e-05/0.1021, allocations: 112.6 kB / 432 MB, free: 14.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1021, allocations: 0 / 432 MB, free: 14.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002263/0.1023, allocations: 11.98 kB / 432 MB, free: 14.6 MB / 366.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.0005688/0.1029, allocations: 0.7613 MB / 432.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001769/0.1031, allocations: 39.92 kB / 432.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1031, allocations: 4.312 kB / 432.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.376e-05/0.1031, allocations: 11.98 kB / 432.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.1034, allocations: 38.47 kB / 432.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.1049, allocations: 1.451 MB / 434.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.1052, allocations: 0.7041 MB / 435 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.912e-05/0.1052, allocations: 3.781 kB / 435.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.967e-05/0.1053, allocations: 19.42 kB / 435.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1053, allocations: 0 / 435.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02203/0.1273, allocations: 1.802 MB / 436.9 MB, free: 9.738 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.599/7.727, allocations: 9.484 kB / 436.9 MB, free: 9.734 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.152449087006971]