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.001482/0.001482, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.001429/0.001429, allocations: 213.3 kB / 23.73 MB, free: 4.531 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.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001528/0.001528, allocations: 47.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2477, allocations: 53.36 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003368/0.251, allocations: 1.616 MB / 432.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.2521, allocations: 0.5143 MB / 433.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.902e-05/0.2521, allocations: 3.938 kB / 433.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.338e-05/0.2522, allocations: 7.922 kB / 433.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001381/0.2523, allocations: 19.86 kB / 433.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003364/0.2527, allocations: 59.81 kB / 433.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.2528, allocations: 47.8 kB / 433.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.619e-05/0.2529, allocations: 11.98 kB / 433.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.253, allocations: 31.91 kB / 433.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.856e-05/0.253, allocations: 23.86 kB / 433.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.2531, allocations: 4 kB / 433.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.889e-05/0.2531, allocations: 7.938 kB / 433.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.55e-05/0.2531, allocations: 15.92 kB / 433.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.015e-05/0.2532, allocations: 27.8 kB / 433.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001619/0.2534, allocations: 73.41 kB / 433.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2534, allocations: 0 / 433.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2534, allocations: 0 / 433.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.2534, allocations: 0 / 433.6 MB, free: 4.195 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.0005217/0.2539, allocations: 313.9 kB / 433.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.2539, allocations: 12.03 kB / 433.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.253e-05/0.254, allocations: 30.75 kB / 433.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001718/0.2541, allocations: 20.88 kB / 433.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002825/0.2544, allocations: 146.3 kB / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.2544, allocations: 4.375 kB / 434.1 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.2545, allocations: 4.375 kB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003196/0.2548, allocations: 137.9 kB / 434.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.2548, allocations: 0 / 434.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.2548, allocations: 0 / 434.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.2548, allocations: 4 kB / 434.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.714e-05/0.2549, allocations: 31.91 kB / 434.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003435/0.2552, allocations: 241.7 kB / 434.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.2554, allocations: 83.7 kB / 434.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.45e-05/0.2555, allocations: 34.7 kB / 434.6 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.2555, allocations: 7.984 kB / 434.6 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.2556, allocations: 38.44 kB / 434.6 MB, free: 2.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.2556, allocations: 3.938 kB / 434.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002853/0.2559, allocations: 101.7 kB / 434.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.81e-05/0.2559, allocations: 110.8 kB / 434.8 MB, free: 2.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.2561, allocations: 140.6 kB / 435 MB, free: 2.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.2561, allocations: 25.7 kB / 435 MB, free: 2.512 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.377e-05/0.2561, allocations: 96.12 kB / 435.1 MB, free: 2.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.836e-05/0.2561, allocations: 7.891 kB / 435.1 MB, free: 2.406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.2562, allocations: 25.67 kB / 435.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.2564, allocations: 326.7 kB / 435.5 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.108e-05/0.2564, allocations: 15.98 kB / 435.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.904e-05/0.2565, allocations: 52.53 kB / 435.5 MB, free: 1.965 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001178/0.2566, allocations: 60.22 kB / 435.6 MB, free: 1.891 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2566, allocations: 0 / 435.6 MB, free: 1.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000161/0.2568, allocations: 85.55 kB / 435.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.2568, allocations: 8.125 kB / 435.7 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.2568, allocations: 4 kB / 435.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.2568, allocations: 0 / 435.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.149e-05/0.2569, allocations: 11.98 kB / 435.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.2569, allocations: 4 kB / 435.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.732e-05/0.2569, allocations: 7.953 kB / 435.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.2569, allocations: 0 / 435.7 MB, free: 1.766 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.0001058/0.257, allocations: 125.8 kB / 435.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.23e-05/0.2571, allocations: 57.59 kB / 435.9 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.958e-05/0.2571, allocations: 16.33 kB / 435.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.2571, allocations: 0 / 435.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.2572, allocations: 4 kB / 435.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2572, allocations: 0 / 435.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.2573, allocations: 148.7 kB / 436 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2573, allocations: 0 / 436 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.265e-05/0.2574, allocations: 8 kB / 436.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.2574, allocations: 3.984 kB / 436.1 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.2574, allocations: 0 / 436.1 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2574, allocations: 4 kB / 436.1 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2574, allocations: 0 / 436.1 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002534/0.2577, allocations: 197.1 kB / 436.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.037e-05/0.2577, allocations: 15.88 kB / 436.3 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.08e-05/0.2577, allocations: 8 kB / 436.3 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.769e-05/0.2578, allocations: 0 / 436.3 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.829e-05/0.2578, allocations: 7.938 kB / 436.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-06/0.2578, allocations: 3.984 kB / 436.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.955e-05/0.2579, allocations: 107.3 kB / 436.4 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2579, allocations: 0 / 436.4 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.2581, allocations: 12 kB / 436.4 MB, free: 0.9727 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.0005947/0.2587, allocations: 0.7572 MB / 437.2 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001556/0.2589, allocations: 47.89 kB / 437.2 MB, free: 140 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2589, allocations: 4 kB / 437.2 MB, free: 136 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.368e-05/0.2589, allocations: 15.92 kB / 437.2 MB, free: 120 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.2593, allocations: 34.81 kB / 437.3 MB, free: 88 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.2608, allocations: 1.451 MB / 438.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.768e-05/0.2609, allocations: 87.38 kB / 438.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.126e-05/0.2609, allocations: 0 / 438.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.14e-05/0.261, allocations: 23.42 kB / 438.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.261, allocations: 0 / 438.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.2911, allocations: 2.335 MB / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.39, allocations: 11.88 kB / 441.2 MB, free: 12.18 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 & python3 -m fmpy simulate --output-file Modelica_4.1.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_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.csv","/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] "Error: Could not read variable clockToSquareWave.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv. Warning: Get data of variable clockToSquareWave.y from file Modelica_4.1.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.961380664259195]