Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",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.001287/0.001288, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001264/0.001264, allocations: 200 kB / 18.01 MB, free: 5.047 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.482/1.482, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 43.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3535, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.003463/0.357, allocations: 1.555 MB / 401.8 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009945/0.3581, allocations: 472.6 kB / 402.3 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.981e-05/0.3582, allocations: 3.938 kB / 402.3 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.538e-05/0.3582, allocations: 3.984 kB / 402.3 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001371/0.3584, allocations: 15.88 kB / 402.3 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002723/0.3587, allocations: 39.89 kB / 402.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000112/0.3588, allocations: 35.8 kB / 402.4 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.3589, allocations: 12 kB / 402.4 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.168e-05/0.359, allocations: 19.91 kB / 402.4 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.966e-05/0.359, allocations: 19.92 kB / 402.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.845e-05/0.3591, allocations: 4 kB / 402.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.558e-05/0.3591, allocations: 4 kB / 402.4 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.338e-05/0.3591, allocations: 15.92 kB / 402.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.105e-05/0.3592, allocations: 19.81 kB / 402.4 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001361/0.3593, allocations: 50.7 kB / 402.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.3593, allocations: 0 / 402.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3594, allocations: 0 / 402.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.3594, allocations: 0 / 402.5 MB, free: 6.551 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005947/0.36, allocations: 371.1 kB / 402.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.36, allocations: 16.03 kB / 402.9 MB, free: 6.125 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.09e-05/0.3601, allocations: 30.75 kB / 402.9 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.609e-05/0.3601, allocations: 20.88 kB / 402.9 MB, free: 6.066 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002943/0.3604, allocations: 184.2 kB / 403.1 MB, free: 5.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.3604, allocations: 4.375 kB / 403.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.3604, allocations: 4.375 kB / 403.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002643/0.3607, allocations: 101.1 kB / 403.2 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.3607, allocations: 0 / 403.2 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.3607, allocations: 4 kB / 403.2 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.3608, allocations: 0 / 403.2 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.029e-05/0.3608, allocations: 27.8 kB / 403.2 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003605/0.3612, allocations: 261.8 kB / 403.5 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.8e-05/0.3613, allocations: 45.14 kB / 403.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.171e-05/0.3614, allocations: 17.78 kB / 403.6 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.3614, allocations: 3.984 kB / 403.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.3615, allocations: 38.56 kB / 403.6 MB, free: 5.246 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.3615, allocations: 0 / 403.6 MB, free: 5.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002614/0.3617, allocations: 65.58 kB / 403.7 MB, free: 5.176 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.384e-05/0.3618, allocations: 85.09 kB / 403.8 MB, free: 5.074 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.362, allocations: 133.8 kB / 403.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.362, allocations: 25.7 kB / 403.9 MB, free: 4.902 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.959e-05/0.362, allocations: 84.39 kB / 404 MB, free: 4.816 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.429e-05/0.3621, allocations: 4 kB / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-05/0.3621, allocations: 21.66 kB / 404 MB, free: 4.785 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.3623, allocations: 322.8 kB / 404.3 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.413e-05/0.3623, allocations: 11.92 kB / 404.3 MB, free: 4.449 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.413e-05/0.3624, allocations: 17.72 kB / 404.4 MB, free: 4.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.658e-05/0.3625, allocations: 33.77 kB / 404.4 MB, free: 4.387 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3625, allocations: 0 / 404.4 MB, free: 4.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001307/0.3626, allocations: 53.62 kB / 404.4 MB, free: 4.328 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.3627, allocations: 14.33 kB / 404.5 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3627, allocations: 0 / 404.5 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.3627, allocations: 0 / 404.5 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.097e-05/0.3628, allocations: 4 kB / 404.5 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.3628, allocations: 0 / 404.5 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.575e-05/0.3628, allocations: 8.062 kB / 404.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/0.3628, allocations: 3.984 kB / 404.5 MB, free: 4.301 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001009/0.3629, allocations: 117.8 kB / 404.6 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.284e-05/0.363, allocations: 45.59 kB / 404.6 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.208e-05/0.3631, allocations: 11.86 kB / 404.6 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.3631, allocations: 0 / 404.6 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.3631, allocations: 0 / 404.6 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.3631, allocations: 0 / 404.6 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.3633, allocations: 181.6 kB / 404.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3633, allocations: 0 / 404.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.632e-05/0.3633, allocations: 4 kB / 404.8 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3633, allocations: 3.938 kB / 404.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.3634, allocations: 4 kB / 404.8 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3634, allocations: 0 / 404.8 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3634, allocations: 4 kB / 404.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001926/0.3636, allocations: 168.2 kB / 405 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.342e-05/0.3637, allocations: 93.05 kB / 405.1 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.3637, allocations: 7.938 kB / 405.1 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.573e-05/0.3638, allocations: 0 / 405.1 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.35e-05/0.3638, allocations: 0 / 405.1 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-06/0.3638, allocations: 7.984 kB / 405.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.775e-05/0.3639, allocations: 103.3 kB / 405.2 MB, free: 3.457 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3639, allocations: 0 / 405.2 MB, free: 3.457 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002139/0.3641, allocations: 4 kB / 405.2 MB, free: 3.453 MB / 318.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0005336/0.3647, allocations: 0.6976 MB / 405.9 MB, free: 2.727 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001503/0.3648, allocations: 27.95 kB / 405.9 MB, free: 2.699 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3648, allocations: 0 / 405.9 MB, free: 2.699 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.755e-05/0.3649, allocations: 11.98 kB / 405.9 MB, free: 2.688 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.3652, allocations: 15.41 kB / 406 MB, free: 2.676 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.3666, allocations: 1.318 MB / 407.3 MB, free: 1.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.3669, allocations: 0.6883 MB / 408 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.431e-05/0.367, allocations: 7.969 kB / 408 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.491e-05/0.367, allocations: 15.44 kB / 408 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of SimCode: time 6.151e-06/0.367, allocations: 0 / 408 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.3933, allocations: 1.465 MB / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.292/8.685, allocations: 4.25 kB / 409.5 MB, free: 15.18 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_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_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches