Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001238/0.001238, allocations: 116 kB / 18.45 MB, free: 4.625 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.00124/0.00124, allocations: 194.9 kB / 21.4 MB, free: 1.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 207.6 MB / 231.8 MB, free: 3.973 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 51.92 kB / 342.2 MB, free: 10.05 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08359/0.08523, allocations: 49.12 MB / 391.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002971/0.0882, allocations: 1.686 MB / 393 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009369/0.08914, allocations: 0.5324 MB / 393.6 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.063e-05/0.08923, allocations: 4 kB / 393.6 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.847e-05/0.08933, allocations: 7.875 kB / 393.6 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001718/0.0895, allocations: 27.78 kB / 393.6 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001636/0.08966, allocations: 47.86 kB / 393.7 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001814/0.08985, allocations: 99.7 kB / 393.8 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.08997, allocations: 25.11 kB / 393.8 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.37e-05/0.09006, allocations: 43.78 kB / 393.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.004e-05/0.09015, allocations: 55.7 kB / 393.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.09017, allocations: 4 kB / 393.9 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.395e-05/0.09019, allocations: 8 kB / 393.9 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.253e-05/0.09025, allocations: 15.92 kB / 393.9 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.803e-05/0.09031, allocations: 51.72 kB / 394 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00015/0.09046, allocations: 83.53 kB / 394 MB, free: 6.066 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.09046, allocations: 0 / 394 MB, free: 6.066 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.09046, allocations: 0 / 394 MB, free: 6.066 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.09047, allocations: 3.984 kB / 394 MB, free: 6.062 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006314/0.0911, allocations: 407 kB / 394.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.09114, allocations: 12.02 kB / 394.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.631e-05/0.09119, allocations: 38.75 kB / 394.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.463e-05/0.09122, allocations: 16.84 kB / 394.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002813/0.09151, allocations: 204.6 kB / 394.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.09152, allocations: 8.375 kB / 394.7 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.086e-05/0.09157, allocations: 7.938 kB / 394.7 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.09176, allocations: 81.66 kB / 394.8 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.09177, allocations: 0 / 394.8 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.09178, allocations: 4 kB / 394.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.09179, allocations: 4 kB / 394.8 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001123/0.0919, allocations: 35.97 kB / 394.8 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005952/0.09249, allocations: 407.9 kB / 395.2 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.09265, allocations: 74.53 kB / 395.3 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.908e-05/0.09272, allocations: 36.86 kB / 395.3 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.09273, allocations: 0 / 395.3 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.09276, allocations: 30.56 kB / 395.4 MB, free: 4.539 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 9.11e-07/0.09276, allocations: 0 / 395.4 MB, free: 4.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002895/0.09305, allocations: 97.56 kB / 395.5 MB, free: 4.438 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.09309, allocations: 55.41 kB / 395.5 MB, free: 4.371 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.09325, allocations: 145.8 kB / 395.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.09326, allocations: 25.7 kB / 395.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.522e-05/0.09334, allocations: 108.2 kB / 395.8 MB, free: 4.078 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.973e-05/0.09337, allocations: 27.73 kB / 395.8 MB, free: 4.051 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.134e-05/0.09341, allocations: 17.72 kB / 395.8 MB, free: 4.027 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.09355, allocations: 322.8 kB / 396.2 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.061e-05/0.09361, allocations: 19.98 kB / 396.2 MB, free: 3.684 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.383e-05/0.09367, allocations: 23.98 kB / 396.2 MB, free: 3.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001161/0.09378, allocations: 44.84 kB / 396.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.09378, allocations: 0 / 396.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001657/0.09395, allocations: 85.58 kB / 396.3 MB, free: 3.523 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.09397, allocations: 11.98 kB / 396.3 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.09398, allocations: 0 / 396.3 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.09399, allocations: 3.938 kB / 396.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.09421, allocations: 43.91 kB / 396.4 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.09422, allocations: 0 / 396.4 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.332e-05/0.09427, allocations: 4 kB / 396.4 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.09428, allocations: 4 kB / 396.4 MB, free: 3.457 MB / 318.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.0001046/0.09439, allocations: 117.8 kB / 396.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.521e-05/0.09442, allocations: 15.84 kB / 396.5 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.189e-05/0.09446, allocations: 16.3 kB / 396.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.09446, allocations: 0 / 396.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.09446, allocations: 0 / 396.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.09447, allocations: 4 kB / 396.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.09475, allocations: 201.5 kB / 396.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.09476, allocations: 3.938 kB / 396.7 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.0949, allocations: 23.98 kB / 396.8 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.0949, allocations: 0 / 396.8 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.09491, allocations: 3.984 kB / 396.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.09491, allocations: 0 / 396.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.09491, allocations: 0 / 396.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002964/0.09521, allocations: 207.7 kB / 397 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.754e-05/0.09529, allocations: 93.02 kB / 397.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.09531, allocations: 0 / 397.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.416e-05/0.09539, allocations: 4 kB / 397.1 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.388e-05/0.09542, allocations: 7.984 kB / 397.1 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.09543, allocations: 0 / 397.1 MB, free: 2.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.027e-05/0.09552, allocations: 112 kB / 397.2 MB, free: 2.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.09552, allocations: 0 / 397.2 MB, free: 2.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002299/0.09575, allocations: 23.95 kB / 397.2 MB, free: 2.547 MB / 318.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.0006364/0.09639, allocations: 0.7321 MB / 397.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001735/0.09656, allocations: 51.95 kB / 398 MB, free: 1.738 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.09656, allocations: 0 / 398 MB, free: 1.738 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.2e-05/0.09662, allocations: 27.98 kB / 398 MB, free: 1.711 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.09695, allocations: 27.89 kB / 398.1 MB, free: 1.684 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.09885, allocations: 1.569 MB / 399.6 MB, free: 40 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003943/0.09924, allocations: 0.708 MB / 400.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.035e-05/0.09929, allocations: 7.859 kB / 400.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.147e-05/0.09936, allocations: 31.42 kB / 400.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.09936, allocations: 0 / 400.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.1258, allocations: 2.322 MB / 402.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.928/8.054, allocations: 15.61 kB / 402.7 MB, free: 12.88 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 10.308688951190561]