Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001707/0.001707, allocations: 114 kB / 20.44 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002001/0.002001, allocations: 213.4 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 230.5 MB / 257.4 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 59.89 kB / 377.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2436, allocations: 53.42 MB / 431.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00294/0.2465, allocations: 1.708 MB / 432.9 MB, free: 5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.2476, allocations: 0.561 MB / 433.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.664e-05/0.2477, allocations: 7.938 kB / 433.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.882e-05/0.2478, allocations: 11.86 kB / 433.5 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.248, allocations: 23.8 kB / 433.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002188/0.2482, allocations: 59.86 kB / 433.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001938/0.2484, allocations: 107.7 kB / 433.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.2485, allocations: 25.3 kB / 433.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.2486, allocations: 47.73 kB / 433.7 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.686e-05/0.2487, allocations: 47.77 kB / 433.8 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.806e-05/0.2487, allocations: 4 kB / 433.8 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.672e-05/0.2488, allocations: 15.98 kB / 433.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.613e-05/0.2488, allocations: 19.92 kB / 433.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.423e-05/0.2489, allocations: 35.75 kB / 433.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.2491, allocations: 95.88 kB / 433.9 MB, free: 3.945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.2491, allocations: 3.984 kB / 433.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2491, allocations: 4 kB / 433.9 MB, free: 3.938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.2491, allocations: 0 / 433.9 MB, free: 3.938 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.000567/0.2497, allocations: 333.9 kB / 434.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.2497, allocations: 12.03 kB / 434.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.081e-05/0.2497, allocations: 34.75 kB / 434.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.2499, allocations: 24.83 kB / 434.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.2501, allocations: 158.2 kB / 434.5 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.2502, allocations: 8.375 kB / 434.5 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.156e-05/0.2502, allocations: 11.94 kB / 434.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001768/0.2504, allocations: 77.59 kB / 434.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.2504, allocations: 0 / 434.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.2504, allocations: 4 kB / 434.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.2504, allocations: 4 kB / 434.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001199/0.2505, allocations: 47 kB / 434.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005529/0.2511, allocations: 379 kB / 435 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001633/0.2512, allocations: 62.53 kB / 435.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.191e-05/0.2513, allocations: 36.86 kB / 435.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.151e-05/0.2513, allocations: 0 / 435.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.2513, allocations: 34.56 kB / 435.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 8.32e-07/0.2513, allocations: 0 / 435.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002876/0.2516, allocations: 105.5 kB / 435.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.2517, allocations: 51.41 kB / 435.3 MB, free: 2.426 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.2518, allocations: 142.4 kB / 435.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.2518, allocations: 25.7 kB / 435.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.36e-05/0.2519, allocations: 108.1 kB / 435.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.466e-05/0.2519, allocations: 19.94 kB / 435.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.511e-05/0.252, allocations: 29.7 kB / 435.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.2521, allocations: 322.8 kB / 435.9 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.399e-05/0.2522, allocations: 20 kB / 435.9 MB, free: 1.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.786e-05/0.2522, allocations: 16.23 kB / 436 MB, free: 1.715 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001207/0.2523, allocations: 52.98 kB / 436 MB, free: 1.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2523, allocations: 4 kB / 436 MB, free: 1.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001772/0.2525, allocations: 101.5 kB / 436.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.2525, allocations: 6.656 kB / 436.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.2525, allocations: 3.938 kB / 436.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.2525, allocations: 0 / 436.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002251/0.2528, allocations: 39.97 kB / 436.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.2528, allocations: 0 / 436.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.208e-05/0.2528, allocations: 3.953 kB / 436.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.2528, allocations: 4 kB / 436.2 MB, free: 1.496 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.767e-05/0.2529, allocations: 117.8 kB / 436.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.239e-05/0.253, allocations: 15.89 kB / 436.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.295e-05/0.253, allocations: 12.41 kB / 436.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.253, allocations: 4 kB / 436.3 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.253, allocations: 0 / 436.3 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.253, allocations: 0 / 436.3 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002086/0.2532, allocations: 168.7 kB / 436.5 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.2532, allocations: 3.938 kB / 436.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001471/0.2534, allocations: 27.91 kB / 436.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2534, allocations: 0 / 436.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.2534, allocations: 4 kB / 436.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.2534, allocations: 4 kB / 436.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2534, allocations: 3.938 kB / 436.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/0.2537, allocations: 199.5 kB / 436.7 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.273e-05/0.2537, allocations: 15.86 kB / 436.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.2537, allocations: 0 / 436.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.203e-05/0.2538, allocations: 0 / 436.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.712e-05/0.2538, allocations: 16.05 kB / 436.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.2538, allocations: 0 / 436.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.61e-05/0.2539, allocations: 114.2 kB / 436.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2539, allocations: 0 / 436.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00023/0.2542, allocations: 19.89 kB / 436.9 MB, free: 0.7188 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.0005654/0.2547, allocations: 0.732 MB / 437.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001834/0.2549, allocations: 43.92 kB / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2549, allocations: 0 / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.483e-05/0.255, allocations: 27.98 kB / 437.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.2553, allocations: 19.92 kB / 437.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.2571, allocations: 1.583 MB / 439.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.2575, allocations: 0.7041 MB / 440 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.538e-05/0.2575, allocations: 7.984 kB / 440 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.614e-05/0.2576, allocations: 31.41 kB / 440 MB, free: 13.44 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2576, allocations: 0 / 440 MB, free: 13.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02999/0.2876, allocations: 2.484 MB / 442.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.96, allocations: 0 / 442.5 MB, free: 11.05 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 13.544993400999374]