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.001674/0.001674, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001857/0.001857, allocations: 188.4 kB / 23.72 MB, free: 4.684 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.429/1.429, allocations: 225.6 MB / 252.5 MB, free: 13.04 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 43.92 kB / 370.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2645, allocations: 52.17 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002907/0.2674, allocations: 1.622 MB / 424.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008453/0.2682, allocations: 0.4909 MB / 424.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.918e-05/0.2683, allocations: 0 / 424.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.653e-05/0.2683, allocations: 11.86 kB / 424.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.2685, allocations: 7.938 kB / 424.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002664/0.2687, allocations: 59.77 kB / 424.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001161/0.2688, allocations: 55.77 kB / 424.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.475e-05/0.2689, allocations: 12.19 kB / 424.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.787e-05/0.269, allocations: 19.92 kB / 424.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.205e-05/0.2691, allocations: 23.86 kB / 424.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.2691, allocations: 0 / 424.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.146e-05/0.2691, allocations: 4 kB / 424.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.595e-05/0.2691, allocations: 27.91 kB / 425 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.167e-05/0.2692, allocations: 27.8 kB / 425 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.2693, allocations: 64.03 kB / 425 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2693, allocations: 0 / 425 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2693, allocations: 4 kB / 425.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.2693, allocations: 0 / 425.1 MB, free: 12.18 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.0004481/0.2698, allocations: 309.9 kB / 425.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.2698, allocations: 8.031 kB / 425.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.1e-05/0.2698, allocations: 38.75 kB / 425.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.759e-05/0.2699, allocations: 8.891 kB / 425.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/0.2701, allocations: 138.4 kB / 425.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.2701, allocations: 8.312 kB / 425.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.847e-06/0.2701, allocations: 8.312 kB / 425.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.2704, allocations: 133.8 kB / 425.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.2704, allocations: 0 / 425.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.2704, allocations: 4 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.2704, allocations: 7.984 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.697e-05/0.2705, allocations: 23.92 kB / 425.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003436/0.2708, allocations: 249.7 kB / 426 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.271, allocations: 87.64 kB / 426.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.617e-05/0.2711, allocations: 30.7 kB / 426.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.2711, allocations: 7.984 kB / 426.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.2712, allocations: 42.5 kB / 426.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.253e-06/0.2712, allocations: 0 / 426.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002762/0.2714, allocations: 97.72 kB / 426.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.639e-05/0.2715, allocations: 106.8 kB / 426.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.2717, allocations: 136.7 kB / 426.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.2717, allocations: 29.7 kB / 426.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.339e-05/0.2717, allocations: 92.38 kB / 426.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.2718, allocations: 7.953 kB / 426.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.2718, allocations: 25.67 kB / 426.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.2719, allocations: 322.8 kB / 426.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.061e-05/0.272, allocations: 15.98 kB / 427 MB, free: 10.04 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.567e-05/0.2721, allocations: 44.23 kB / 427 MB, free: 9.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001202/0.2722, allocations: 68.2 kB / 427.1 MB, free: 9.895 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2722, allocations: 0 / 427.1 MB, free: 9.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001682/0.2723, allocations: 85.7 kB / 427.1 MB, free: 9.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.2724, allocations: 10.44 kB / 427.2 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.2724, allocations: 8 kB / 427.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.2724, allocations: 0 / 427.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.131e-05/0.2724, allocations: 11.98 kB / 427.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.2725, allocations: 3.938 kB / 427.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.724e-05/0.2725, allocations: 7.953 kB / 427.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.408e-06/0.2725, allocations: 4 kB / 427.2 MB, free: 9.762 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.77e-05/0.2726, allocations: 129.8 kB / 427.3 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.529e-05/0.2727, allocations: 53.62 kB / 427.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.747e-05/0.2727, allocations: 16.33 kB / 427.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2727, allocations: 0 / 427.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2727, allocations: 4 kB / 427.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.2727, allocations: 0 / 427.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001942/0.2729, allocations: 152.6 kB / 427.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2729, allocations: 0 / 427.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.464e-05/0.273, allocations: 8 kB / 427.5 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.273, allocations: 0 / 427.5 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.273, allocations: 4 kB / 427.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.273, allocations: 0 / 427.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.273, allocations: 4 kB / 427.6 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002326/0.2732, allocations: 201 kB / 427.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.004e-05/0.2733, allocations: 15.95 kB / 427.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.111e-05/0.2733, allocations: 7.984 kB / 427.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.226e-05/0.2734, allocations: 0 / 427.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.824e-05/0.2734, allocations: 8 kB / 427.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.2734, allocations: 0 / 427.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.978e-05/0.2735, allocations: 111.2 kB / 427.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2735, allocations: 4 kB / 427.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002288/0.2737, allocations: 7.938 kB / 427.9 MB, free: 8.961 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.0006467/0.2744, allocations: 0.7453 MB / 428.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001638/0.2745, allocations: 48.11 kB / 428.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2745, allocations: 0 / 428.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.717e-05/0.2746, allocations: 8.375 kB / 428.7 MB, free: 8.129 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.2749, allocations: 40.02 kB / 428.7 MB, free: 8.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.2764, allocations: 1.448 MB / 430.2 MB, free: 6.527 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/0.2768, allocations: 0.6961 MB / 430.9 MB, free: 5.805 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.308e-05/0.2768, allocations: 8 kB / 430.9 MB, free: 5.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.825e-05/0.2769, allocations: 23.36 kB / 430.9 MB, free: 5.773 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2769, allocations: 4 kB / 430.9 MB, free: 5.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02872/0.3056, allocations: 1.889 MB / 432.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.84, allocations: 13.47 kB / 432.8 MB, free: 4.012 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] Reference file matches [Calling sys.exit(0), Time elapsed: 13.207339992048219]