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.001729/0.001729, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.00258/0.00258, allocations: 213.7 kB / 23.73 MB, free: 4.406 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.613/1.613, allocations: 230.5 MB / 257.4 MB, free: 7.773 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.001774/0.001774, allocations: 59.89 kB / 377.7 MB, free: 2.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3814/0.3831, allocations: 53.42 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003242/0.3864, allocations: 1.665 MB / 432.8 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.3875, allocations: 0.5182 MB / 433.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.962e-05/0.3876, allocations: 0 / 433.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.3877, allocations: 23.8 kB / 433.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002227/0.3879, allocations: 23.8 kB / 433.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.3882, allocations: 59.91 kB / 433.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002037/0.3884, allocations: 99.64 kB / 433.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.3885, allocations: 25.09 kB / 433.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.3886, allocations: 51.83 kB / 433.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001045/0.3888, allocations: 43.66 kB / 433.6 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.3888, allocations: 4 kB / 433.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.021e-05/0.3888, allocations: 12 kB / 433.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.759e-05/0.3889, allocations: 19.92 kB / 433.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.639e-05/0.3889, allocations: 39.78 kB / 433.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001983/0.3891, allocations: 89.75 kB / 433.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.3892, allocations: 0 / 433.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3892, allocations: 0 / 433.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.3892, allocations: 3.938 kB / 433.8 MB, free: 3.965 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.0006318/0.3898, allocations: 341.7 kB / 434.1 MB, free: 3.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.3898, allocations: 11.98 kB / 434.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.3e-05/0.3899, allocations: 38.75 kB / 434.2 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.39, allocations: 24.83 kB / 434.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.3903, allocations: 150.3 kB / 434.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.3903, allocations: 4.375 kB / 434.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.408e-05/0.3904, allocations: 11.94 kB / 434.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.3906, allocations: 81.53 kB / 434.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.3906, allocations: 0 / 434.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.3906, allocations: 8 kB / 434.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.3906, allocations: 4 kB / 434.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.3907, allocations: 39.97 kB / 434.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005647/0.3913, allocations: 311.7 kB / 434.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.3914, allocations: 62.62 kB / 434.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.192e-05/0.3915, allocations: 24.86 kB / 434.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.449e-05/0.3915, allocations: 0 / 434.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.3916, allocations: 42.48 kB / 434.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 8.31e-07/0.3916, allocations: 4 kB / 434.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.000287/0.3918, allocations: 97.75 kB / 435 MB, free: 2.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.3919, allocations: 51.41 kB / 435.1 MB, free: 2.535 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.392, allocations: 142.4 kB / 435.2 MB, free: 2.379 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.3921, allocations: 29.7 kB / 435.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.372e-05/0.3921, allocations: 108.1 kB / 435.4 MB, free: 2.234 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.3922, allocations: 19.94 kB / 435.4 MB, free: 2.215 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.199e-05/0.3922, allocations: 25.7 kB / 435.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.3924, allocations: 314.8 kB / 435.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.751e-05/0.3924, allocations: 32.05 kB / 435.7 MB, free: 1.836 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.652e-05/0.3925, allocations: 23.98 kB / 435.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.3926, allocations: 52.92 kB / 435.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3926, allocations: 0 / 435.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001643/0.3928, allocations: 93.55 kB / 435.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.3928, allocations: 11.94 kB / 435.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.3928, allocations: 0 / 435.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3928, allocations: 0 / 435.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.393, allocations: 35.97 kB / 436 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.393, allocations: 4 kB / 436 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.33e-05/0.3931, allocations: 7.953 kB / 436 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-06/0.3931, allocations: 0 / 436 MB, free: 1.602 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 0.0001202/0.3932, allocations: 121.8 kB / 436.1 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.52e-05/0.3933, allocations: 15.89 kB / 436.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.209e-05/0.3933, allocations: 12.39 kB / 436.1 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3933, allocations: 3.938 kB / 436.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3933, allocations: 4 kB / 436.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.716e-06/0.3933, allocations: 0 / 436.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002106/0.3935, allocations: 160.7 kB / 436.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3935, allocations: 7.938 kB / 436.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.3936, allocations: 19.98 kB / 436.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3936, allocations: 0 / 436.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.3937, allocations: 0 / 436.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.3937, allocations: 0 / 436.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3937, allocations: 4 kB / 436.3 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003325/0.394, allocations: 207.4 kB / 436.5 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.209e-05/0.394, allocations: 15.78 kB / 436.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.394, allocations: 4.031 kB / 436.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.669e-05/0.3941, allocations: 8.047 kB / 436.5 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.028e-05/0.3941, allocations: 4 kB / 436.5 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.3941, allocations: 8.062 kB / 436.5 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.717e-05/0.3942, allocations: 114.8 kB / 436.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3942, allocations: 0 / 436.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002146/0.3945, allocations: 12 kB / 436.7 MB, free: 0.8281 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.0005999/0.3951, allocations: 0.7241 MB / 437.4 MB, free: 80 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000161/0.3952, allocations: 55.97 kB / 437.4 MB, free: 24 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3952, allocations: 0 / 437.4 MB, free: 24 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.858e-05/0.3953, allocations: 23.98 kB / 437.5 MB, free: 0 / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.3956, allocations: 26.11 kB / 437.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.3976, allocations: 1.583 MB / 439.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.3977, allocations: 89.19 kB / 439.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.565e-05/0.3977, allocations: 4 kB / 439.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.3978, allocations: 31.42 kB / 439.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3978, allocations: 3.938 kB / 439.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03208/0.4299, allocations: 2.912 MB / 442.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.64, allocations: 3.609 kB / 442.1 MB, free: 11.36 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.507219356950372]