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.001354/0.001354, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.001349/0.001349, allocations: 183.7 kB / 23.72 MB, free: 4.699 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.428/1.428, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.001557/0.001557, allocations: 47.92 kB / 370.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2519, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002992/0.2549, allocations: 1.622 MB / 424.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008959/0.2558, allocations: 0.4947 MB / 424.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.427e-05/0.2559, allocations: 11.94 kB / 424.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.89e-05/0.256, allocations: 3.938 kB / 424.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001316/0.2561, allocations: 7.875 kB / 424.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002759/0.2564, allocations: 51.83 kB / 424.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.2565, allocations: 55.78 kB / 424.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.2566, allocations: 16.16 kB / 424.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.373e-05/0.2567, allocations: 19.88 kB / 424.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.54e-05/0.2567, allocations: 31.84 kB / 424.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.667e-05/0.2568, allocations: 4 kB / 424.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.257e-05/0.2568, allocations: 4 kB / 425 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.08e-05/0.2568, allocations: 15.94 kB / 425 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.721e-05/0.2569, allocations: 31.78 kB / 425 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.257, allocations: 60.09 kB / 425.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.257, allocations: 0 / 425.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.257, allocations: 0 / 425.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.329e-06/0.257, 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.0004686/0.2575, allocations: 309.9 kB / 425.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.2575, allocations: 12.03 kB / 425.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.017e-05/0.2576, allocations: 34.75 kB / 425.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.839e-05/0.2576, allocations: 12.89 kB / 425.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000233/0.2578, allocations: 142.3 kB / 425.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.2578, allocations: 8.312 kB / 425.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.2579, allocations: 4.375 kB / 425.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.2582, allocations: 133.8 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.2582, allocations: 0 / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.2582, allocations: 4 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.2582, allocations: 0 / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.042e-05/0.2583, allocations: 27.91 kB / 425.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003604/0.2586, allocations: 253.7 kB / 426 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002052/0.2588, allocations: 83.77 kB / 426.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.883e-05/0.2589, allocations: 34.62 kB / 426.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.2589, allocations: 15.92 kB / 426.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.259, allocations: 30.56 kB / 426.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.259, allocations: 0 / 426.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003002/0.2593, allocations: 97.55 kB / 426.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.678e-05/0.2594, allocations: 103.1 kB / 426.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001931/0.2595, allocations: 148.7 kB / 426.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.2596, allocations: 29.7 kB / 426.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.383e-05/0.2596, allocations: 88.12 kB / 426.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.339e-05/0.2596, allocations: 7.953 kB / 426.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.678e-05/0.2597, allocations: 29.61 kB / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.2598, allocations: 322.8 kB / 426.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.16e-05/0.2599, allocations: 15.98 kB / 427 MB, free: 10.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.674e-05/0.26, allocations: 44.28 kB / 427 MB, free: 9.965 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001138/0.2601, allocations: 60.22 kB / 427.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2601, allocations: 4 kB / 427.1 MB, free: 9.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001741/0.2603, allocations: 85.55 kB / 427.2 MB, free: 9.797 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.2603, allocations: 11.28 kB / 427.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2603, allocations: 0 / 427.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.2603, allocations: 0 / 427.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.156e-05/0.2604, allocations: 15.92 kB / 427.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.206e-06/0.2604, allocations: 4 kB / 427.2 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.989e-05/0.2604, allocations: 7.953 kB / 427.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.2604, allocations: 4.125 kB / 427.2 MB, free: 9.758 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.0001076/0.2605, allocations: 133.7 kB / 427.3 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.04e-05/0.2606, allocations: 45.66 kB / 427.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.268e-05/0.2607, allocations: 16.33 kB / 427.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.2607, allocations: 4 kB / 427.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.2607, allocations: 4 kB / 427.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.2607, allocations: 288 / 427.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.2609, allocations: 152.6 kB / 427.5 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.2609, allocations: 0 / 427.5 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.741e-05/0.2609, allocations: 12 kB / 427.6 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.261, allocations: 7.984 kB / 427.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.261, allocations: 7.984 kB / 427.6 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.261, allocations: 0 / 427.6 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.261, allocations: 7.938 kB / 427.6 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002083/0.2612, allocations: 181.1 kB / 427.8 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-05/0.2612, allocations: 23.94 kB / 427.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.2612, allocations: 0 / 427.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.446e-05/0.2613, allocations: 4 kB / 427.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.714e-05/0.2613, allocations: 0 / 427.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.2613, allocations: 8 kB / 427.8 MB, free: 9.074 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.717e-05/0.2614, allocations: 107.2 kB / 427.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2614, allocations: 0 / 427.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002338/0.2617, allocations: 11.94 kB / 427.9 MB, free: 8.957 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.0005959/0.2623, allocations: 0.7452 MB / 428.7 MB, free: 8.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001593/0.2624, allocations: 56.16 kB / 428.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2624, allocations: 0 / 428.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.562e-05/0.2625, allocations: 15.92 kB / 428.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.2628, allocations: 20.03 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.001469/0.2643, allocations: 1.445 MB / 430.2 MB, free: 6.527 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.2646, allocations: 0.7 MB / 430.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.321e-05/0.2646, allocations: 7.938 kB / 430.9 MB, free: 5.793 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.446e-05/0.2647, allocations: 23.42 kB / 430.9 MB, free: 5.77 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2647, allocations: 0 / 430.9 MB, free: 5.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02769/0.2924, allocations: 1.896 MB / 432.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.21, allocations: 6.984 kB / 432.8 MB, free: 4.008 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79641e-05 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.csv","/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] "Error: Could not read variable clockToSquareWave.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv. Warning: Get data of variable clockToSquareWave.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,clockToSquareWave.y Variables in the result:time,clockToSquareWave.u,sample1.y,sine.y,sine.amplitude,sine.f [Calling sys.exit(0), Time elapsed: 13.748226526997314]