Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 112.5 kB / 17.06 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 200.1 kB / 18.01 MB, free: 5.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 47.91 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3614, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003543/0.365, allocations: 1.846 MB / 402.1 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.3665, allocations: 0.6893 MB / 402.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.3666, allocations: 4 kB / 402.8 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.3668, allocations: 19.73 kB / 402.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.367, allocations: 27.8 kB / 402.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005799/0.3676, allocations: 149.8 kB / 403 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002232/0.3678, allocations: 147.6 kB / 403.1 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.368, allocations: 53.53 kB / 403.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.3681, allocations: 59.77 kB / 403.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.3682, allocations: 55.7 kB / 403.3 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.809e-05/0.3682, allocations: 12 kB / 403.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.3684, allocations: 59.89 kB / 403.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.836e-05/0.3685, allocations: 43.83 kB / 403.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.207e-05/0.3685, allocations: 67.55 kB / 403.5 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002984/0.3688, allocations: 210.1 kB / 403.7 MB, free: 5.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3689, allocations: 0 / 403.7 MB, free: 5.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3689, allocations: 0 / 403.7 MB, free: 5.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.3689, allocations: 0 / 403.7 MB, free: 5.375 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008002/0.3697, allocations: 482.6 kB / 404.1 MB, free: 4.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3697, allocations: 12.03 kB / 404.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.933e-05/0.3698, allocations: 46.73 kB / 404.2 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.592e-05/0.3698, allocations: 20.84 kB / 404.2 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003545/0.3702, allocations: 248 kB / 404.5 MB, free: 4.488 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.3702, allocations: 8.562 kB / 404.5 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.3703, allocations: 11.94 kB / 404.5 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000693/0.371, allocations: 329.2 kB / 404.8 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.371, allocations: 3.984 kB / 404.8 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.371, allocations: 4 kB / 404.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.371, allocations: 0 / 404.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002503/0.3713, allocations: 91.88 kB / 404.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004383/0.3717, allocations: 345.5 kB / 405.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005647/0.3723, allocations: 274.4 kB / 405.5 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/0.3726, allocations: 93.73 kB / 405.6 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008221/0.3734, allocations: 0.5856 MB / 406.2 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.3735, allocations: 34.55 kB / 406.2 MB, free: 2.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 1.624e-06/0.3735, allocations: 0 / 406.2 MB, free: 2.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006611/0.3741, allocations: 245.2 kB / 406.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.3743, allocations: 114.9 kB / 406.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002448/0.3745, allocations: 195.2 kB / 406.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.3745, allocations: 29.7 kB / 406.8 MB, free: 1.867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.155e-05/0.3746, allocations: 100.6 kB / 406.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.397e-05/0.3747, allocations: 23.83 kB / 406.9 MB, free: 1.738 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.359e-05/0.3747, allocations: 41.7 kB / 407 MB, free: 1.691 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3749, allocations: 330.8 kB / 407.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.097e-05/0.375, allocations: 43.97 kB / 407.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.3752, allocations: 159 kB / 407.5 MB, free: 1.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000288/0.3755, allocations: 204.1 kB / 407.7 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3755, allocations: 0 / 407.7 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003486/0.3759, allocations: 221 kB / 407.9 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.3759, allocations: 10.34 kB / 407.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.168e-06/0.3759, allocations: 4 kB / 407.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.376, allocations: 8.531 kB / 407.9 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.3761, allocations: 47.86 kB / 408 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/0.3761, allocations: 11.98 kB / 408 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.3763, allocations: 19.89 kB / 408 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.3763, allocations: 12 kB / 408 MB, free: 0.5117 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001694/0.3765, allocations: 145.8 kB / 408.1 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003356/0.3768, allocations: 161.4 kB / 408.3 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004142/0.3772, allocations: 194.7 kB / 408.5 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3773, allocations: 0 / 408.5 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3773, allocations: 4 kB / 408.5 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3773, allocations: 0 / 408.5 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002658/0.3775, allocations: 233.4 kB / 408.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.3776, allocations: 0 / 408.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.3777, allocations: 35.91 kB / 408.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3777, allocations: 0 / 408.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.3778, allocations: 12 kB / 408.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3778, allocations: 0 / 408.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3778, allocations: 4 kB / 408.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004352/0.3782, allocations: 288.1 kB / 409.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.3783, allocations: 113 kB / 409.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.072e-05/0.3784, allocations: 7.984 kB / 409.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.3785, allocations: 15.94 kB / 409.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.745e-05/0.3786, allocations: 3.984 kB / 409.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.3786, allocations: 8 kB / 409.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001437/0.3787, allocations: 147.3 kB / 409.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3788, allocations: 0 / 409.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003222/0.3791, allocations: 32 kB / 409.4 MB, free: 15.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001019/0.3801, allocations: 0.9309 MB / 410.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003651/0.3805, allocations: 144.4 kB / 410.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3805, allocations: 0 / 410.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.342e-05/0.3806, allocations: 11.98 kB / 410.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006471/0.3812, allocations: 149.5 kB / 410.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.3839, allocations: 2.153 MB / 412.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003931/0.3843, allocations: 0.7356 MB / 413.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.204e-05/0.3844, allocations: 21.55 kB / 413.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.66e-05/0.3845, allocations: 43.42 kB / 413.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3845, allocations: 0 / 413.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02743/0.4119, allocations: 4.248 MB / 417.8 MB, free: 6.496 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.491/8.903, allocations: 4.688 kB / 417.8 MB, free: 6.492 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable sample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv failed! " Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,assignClock.u,assignClock.y,sample1.limiter.u,sample1.limiter.y,sample1.noise.u