Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.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.002008/0.002008, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.002142/0.002142, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.513/1.513, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 47.92 kB / 370.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3219, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003186/0.3251, allocations: 1.711 MB / 424.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.3262, allocations: 498.7 kB / 424.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.3263, allocations: 8 kB / 424.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.3264, allocations: 7.875 kB / 424.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002241/0.3266, allocations: 31.78 kB / 424.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000208/0.3268, allocations: 47.88 kB / 424.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.327, allocations: 99.69 kB / 425 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.3271, allocations: 21.3 kB / 425 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.995e-05/0.3272, allocations: 47.84 kB / 425.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.866e-05/0.3273, allocations: 43.7 kB / 425.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.089e-05/0.3274, allocations: 12 kB / 425.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.916e-05/0.3274, allocations: 11.94 kB / 425.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.698e-05/0.3274, allocations: 19.92 kB / 425.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.298e-05/0.3275, allocations: 39.73 kB / 425.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.3276, allocations: 84 kB / 425.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3276, allocations: 0 / 425.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3276, allocations: 0 / 425.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.249e-06/0.3277, allocations: 0 / 425.3 MB, free: 11.94 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005789/0.3282, allocations: 345.8 kB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.3283, allocations: 12.02 kB / 425.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.62e-05/0.3283, allocations: 38.75 kB / 425.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.233e-05/0.3284, allocations: 8.891 kB / 425.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002842/0.3286, allocations: 153.5 kB / 425.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.3286, allocations: 4 kB / 425.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.733e-05/0.3287, allocations: 8 kB / 425.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.3289, allocations: 89.05 kB / 425.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.3289, allocations: 0 / 425.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.3289, allocations: 4 kB / 425.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.3289, allocations: 0 / 425.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001188/0.329, allocations: 43.97 kB / 426 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005688/0.3296, allocations: 371 kB / 426.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001595/0.3297, allocations: 70.56 kB / 426.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.157e-05/0.3298, allocations: 28.89 kB / 426.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.3298, allocations: 3.938 kB / 426.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.3299, allocations: 34.56 kB / 426.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.3299, allocations: 0 / 426.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.000297/0.3302, allocations: 93.56 kB / 426.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.3302, allocations: 51.41 kB / 426.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.3303, allocations: 153.8 kB / 426.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.3304, allocations: 25.7 kB / 426.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.502e-05/0.3304, allocations: 112.2 kB / 426.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.785e-05/0.3305, allocations: 19.8 kB / 426.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.355e-05/0.3305, allocations: 25.69 kB / 426.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3307, allocations: 322.8 kB / 427.2 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.632e-05/0.3307, allocations: 19.98 kB / 427.3 MB, free: 9.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.819e-05/0.3308, allocations: 16.23 kB / 427.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001203/0.3309, allocations: 60.72 kB / 427.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.3309, allocations: 4 kB / 427.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001754/0.3311, allocations: 89.62 kB / 427.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.3311, allocations: 7.438 kB / 427.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.3311, allocations: 0 / 427.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.3311, allocations: 0 / 427.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002354/0.3313, allocations: 39.97 kB / 427.5 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.3313, allocations: 0 / 427.5 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.513e-05/0.3314, allocations: 7.953 kB / 427.5 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.3314, allocations: 4.234 kB / 427.5 MB, free: 9.52 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (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 9.75e-05/0.3315, allocations: 125.7 kB / 427.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.3315, allocations: 7.953 kB / 427.6 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.302e-05/0.3316, allocations: 12.39 kB / 427.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.3316, allocations: 4 kB / 427.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3316, allocations: 0 / 427.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.3316, allocations: 3.938 kB / 427.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002063/0.3318, allocations: 172.6 kB / 427.8 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3318, allocations: 0 / 427.8 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.332, allocations: 19.98 kB / 427.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.332, allocations: 0 / 427.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.332, allocations: 7.984 kB / 427.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.332, allocations: 0 / 427.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.332, allocations: 0 / 427.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003219/0.3323, allocations: 211.3 kB / 428 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.175e-05/0.3323, allocations: 11.89 kB / 428.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.13e-05/0.3323, allocations: 4.031 kB / 428.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.858e-05/0.3324, allocations: 4 kB / 428.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.419e-05/0.3325, allocations: 7.984 kB / 428.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.3325, allocations: 0 / 428.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.798e-05/0.3325, allocations: 105.1 kB / 428.2 MB, free: 8.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3325, allocations: 0 / 428.2 MB, free: 8.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002342/0.3328, allocations: 15.94 kB / 428.2 MB, free: 8.754 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * 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 (5): * Single equations (assignments): 5 * 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.0006131/0.3334, allocations: 0.7399 MB / 428.9 MB, free: 7.988 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001806/0.3336, allocations: 47.91 kB / 429 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3336, allocations: 0 / 429 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.483e-05/0.3336, allocations: 27.98 kB / 429 MB, free: 7.914 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003368/0.334, allocations: 30.25 kB / 429 MB, free: 7.891 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.3359, allocations: 1.574 MB / 430.6 MB, free: 6.238 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003595/0.3362, allocations: 0.7002 MB / 431.3 MB, free: 5.512 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.626e-05/0.3363, allocations: 8 kB / 431.3 MB, free: 5.504 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.091e-05/0.3363, allocations: 31.42 kB / 431.3 MB, free: 5.473 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.3363, allocations: 0 / 431.3 MB, free: 5.473 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03215/0.3685, allocations: 2.455 MB / 433.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.26, allocations: 2.5 kB / 433.8 MB, free: 3.137 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.033305553999526]