Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.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.Mechanics.Translational.Examples.InitialConditions,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.InitialConditions,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions",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.001193/0.001194, allocations: 112.6 kB / 17.07 MB, free: 5.988 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.001354/0.001355, allocations: 195 kB / 18 MB, free: 5.074 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.355/1.355, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.269, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.InitialConditions): time 0.003396/0.2725, allocations: 2.485 MB / 402.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006734/0.2732, allocations: 255 kB / 402.9 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000181/0.2734, allocations: 8 kB / 403 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001752/0.2736, allocations: 43.58 kB / 403 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.2738, allocations: 95.12 kB / 403.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002248/0.2741, allocations: 63.91 kB / 403.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003653/0.2744, allocations: 322.5 kB / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.2747, allocations: 103.1 kB / 403.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.2748, allocations: 119.6 kB / 403.7 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.275, allocations: 127.4 kB / 403.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.027e-05/0.2751, allocations: 28 kB / 403.8 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.823e-05/0.2751, allocations: 24 kB / 403.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.415e-05/0.2752, allocations: 59.81 kB / 403.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.2753, allocations: 147.3 kB / 404.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004382/0.2758, allocations: 317.7 kB / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2758, allocations: 0 / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2758, allocations: 0 / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.2758, allocations: 0 / 404.4 MB, free: 4.625 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009466/0.2768, allocations: 0.5806 MB / 405 MB, free: 3.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.2768, allocations: 8.031 kB / 405 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.075e-05/0.2769, allocations: 58.73 kB / 405 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.685e-05/0.277, allocations: 32.75 kB / 405.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/0.2773, allocations: 255.9 kB / 405.3 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.2773, allocations: 28.92 kB / 405.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.636e-05/0.2774, allocations: 28.33 kB / 405.4 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004417/0.2778, allocations: 251.2 kB / 405.6 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.2778, allocations: 3.938 kB / 405.6 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.491e-05/0.2779, allocations: 12 kB / 405.6 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.2779, allocations: 11.98 kB / 405.6 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002846/0.2782, allocations: 179.8 kB / 405.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.2792, allocations: 0.7422 MB / 406.5 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004436/0.2797, allocations: 277.5 kB / 406.8 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.2799, allocations: 125.7 kB / 406.9 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.2799, allocations: 4.625 kB / 406.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.2799, allocations: 42.56 kB / 407 MB, free: 1.816 MB / 318.1 MB Notification: Performance of pre-optimization done (n=36): time 1.443e-06/0.28, allocations: 0 / 407 MB, free: 1.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=48): time 0.002646/0.2826, allocations: 1.72 MB / 408.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.587e-05/0.2827, allocations: 85.05 kB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.2829, allocations: 186.3 kB / 409 MB, free: 15.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.2829, allocations: 29.7 kB / 409 MB, free: 15.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.26e-05/0.283, allocations: 140.8 kB / 409.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.2831, allocations: 182.4 kB / 409.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.2832, allocations: 82.22 kB / 409.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2834, allocations: 338.8 kB / 409.7 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.2835, allocations: 101.1 kB / 409.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.2838, allocations: 165.4 kB / 410 MB, free: 14.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00037/0.2841, allocations: 278.8 kB / 410.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.2841, allocations: 0 / 410.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005/0.2846, allocations: 373.9 kB / 410.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.2847, allocations: 8 kB / 410.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/0.2847, allocations: 4.062 kB / 410.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.2847, allocations: 4 kB / 410.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003739/0.2851, allocations: 99.89 kB / 410.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.2851, allocations: 7.938 kB / 410.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.2852, allocations: 15.94 kB / 410.8 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.2853, allocations: 12 kB / 410.8 MB, free: 13.77 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (58): * Single equations (assignments): 58 * 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.0001394/0.2854, allocations: 150.3 kB / 410.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.082e-05/0.2855, allocations: 27.8 kB / 410.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001464/0.2856, allocations: 41.86 kB / 411 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.2857, allocations: 12 kB / 411 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.2857, allocations: 0 / 411 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2857, allocations: 0 / 411 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/0.287, allocations: 0.9466 MB / 411.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.287, allocations: 0 / 411.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004021/0.2874, allocations: 107.9 kB / 412.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.2874, allocations: 7.938 kB / 412.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.254e-05/0.2875, allocations: 8 kB / 412.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.2875, allocations: 4 kB / 412.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2875, allocations: 0 / 412.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007552/0.2882, allocations: 0.6435 MB / 412.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.097e-05/0.2883, allocations: 108.8 kB / 412.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.835e-05/0.2884, allocations: 11.94 kB / 412.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.2885, allocations: 12 kB / 412.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.917e-05/0.2886, allocations: 23.97 kB / 412.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.2886, allocations: 16 kB / 412.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001386/0.2888, allocations: 132.3 kB / 413 MB, free: 11.42 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2888, allocations: 0 / 413 MB, free: 11.42 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003638/0.2891, allocations: 80 kB / 413.1 MB, free: 11.34 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (m1.s,m1.v,sd1.s_rel,sd1.v_rel,sd2.s_rel,sd2.v_rel,m4.s,m4.v) * 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 (48): * Single equations (assignments): 48 * 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.001304/0.2904, allocations: 1.192 MB / 414.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004665/0.2909, allocations: 298.7 kB / 414.6 MB, free: 9.824 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2909, allocations: 0 / 414.6 MB, free: 9.824 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002097/0.2911, allocations: 158.2 kB / 414.7 MB, free: 9.672 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006387/0.2918, allocations: 70.84 kB / 414.8 MB, free: 9.605 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004135/0.2959, allocations: 3.292 MB / 418.1 MB, free: 6.199 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005345/0.2965, allocations: 0.7726 MB / 418.9 MB, free: 5.398 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001327/0.2966, allocations: 34.95 kB / 418.9 MB, free: 5.363 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.2968, allocations: 95.41 kB / 419 MB, free: 5.27 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2968, allocations: 4 kB / 419 MB, free: 5.266 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02675/0.3236, allocations: 6.106 MB / 425.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.777/8.1, allocations: 0.625 kB / 425.1 MB, free: 15.29 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/InitialConditions/InitialConditions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches