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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 121.5 kB / 19.17 MB, free: 3.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 203.9 kB / 22.12 MB, free: 0.9609 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.311/1.311, allocations: 207.6 MB / 232.5 MB, free: 3.945 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 51.92 kB / 343 MB, free: 9.98 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0801/0.08175, allocations: 49.13 MB / 392.1 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002718/0.08447, allocations: 1.677 MB / 393.8 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008547/0.08532, allocations: 0.5345 MB / 394.3 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.434e-05/0.0854, allocations: 7.938 kB / 394.3 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.774e-05/0.08548, allocations: 11.86 kB / 394.3 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001607/0.08564, allocations: 31.78 kB / 394.4 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001635/0.08581, allocations: 35.95 kB / 394.4 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00017/0.08598, allocations: 111.6 kB / 394.5 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.445e-05/0.08607, allocations: 21.11 kB / 394.5 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.054e-05/0.08616, allocations: 43.84 kB / 394.6 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.675e-05/0.08625, allocations: 39.78 kB / 394.6 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.08627, allocations: 8 kB / 394.6 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.17e-05/0.0863, allocations: 4 kB / 394.6 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.423e-05/0.08635, allocations: 23.92 kB / 394.7 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.357e-05/0.0864, allocations: 51.61 kB / 394.7 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.08654, allocations: 83.58 kB / 394.8 MB, free: 5.996 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.08654, allocations: 0 / 394.8 MB, free: 5.996 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.08654, allocations: 0 / 394.8 MB, free: 5.996 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.08655, allocations: 0 / 394.8 MB, free: 5.996 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.0005731/0.08712, allocations: 411 kB / 395.2 MB, free: 5.547 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.08716, allocations: 12.03 kB / 395.2 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.411e-05/0.08717, allocations: 8.125 kB / 395.2 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.97e-05/0.08721, allocations: 46.67 kB / 395.3 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.096e-05/0.08724, allocations: 12.84 kB / 395.3 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.0875, allocations: 204.8 kB / 395.5 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.08751, allocations: 8.125 kB / 395.5 MB, free: 5.215 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.915e-05/0.08754, allocations: 8 kB / 395.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000178/0.08772, allocations: 81.59 kB / 395.6 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.08773, allocations: 0 / 395.6 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.08773, allocations: 3.938 kB / 395.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.08774, allocations: 8 kB / 395.6 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/0.08786, allocations: 39.97 kB / 395.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005372/0.08839, allocations: 408 kB / 396 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001439/0.08854, allocations: 58.59 kB / 396.1 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.568e-05/0.08861, allocations: 32.89 kB / 396.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.08863, allocations: 4 kB / 396.1 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.08865, allocations: 30.56 kB / 396.1 MB, free: 4.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.132e-06/0.08865, allocations: 0 / 396.1 MB, free: 4.465 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002767/0.08893, allocations: 101.5 kB / 396.2 MB, free: 4.359 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.08896, allocations: 55.41 kB / 396.3 MB, free: 4.293 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.08908, allocations: 137.8 kB / 396.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.0891, allocations: 33.7 kB / 396.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.691e-05/0.08917, allocations: 112.1 kB / 396.6 MB, free: 3.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.758e-05/0.0892, allocations: 19.84 kB / 396.6 MB, free: 3.977 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.77e-05/0.08924, allocations: 21.72 kB / 396.6 MB, free: 3.949 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.08937, allocations: 318.8 kB / 396.9 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.567e-05/0.08943, allocations: 19.98 kB / 396.9 MB, free: 3.609 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.218e-05/0.08949, allocations: 19.98 kB / 397 MB, free: 3.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.08961, allocations: 60.97 kB / 397 MB, free: 3.527 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.08961, allocations: 0 / 397 MB, free: 3.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001661/0.08978, allocations: 89.52 kB / 397.1 MB, free: 3.434 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.08979, allocations: 4 kB / 397.1 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.08979, allocations: 4 kB / 397.1 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.0898, allocations: 0 / 397.1 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.09001, allocations: 35.97 kB / 397.1 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.207e-06/0.09002, allocations: 0 / 397.1 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.409e-05/0.09007, allocations: 15.92 kB / 397.2 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.09008, allocations: 0 / 397.2 MB, free: 3.375 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 9.272e-05/0.09017, allocations: 117.8 kB / 397.3 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.429e-05/0.0902, allocations: 15.84 kB / 397.3 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.83e-05/0.09023, allocations: 12.31 kB / 397.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.09023, allocations: 0 / 397.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.09024, allocations: 7.922 kB / 397.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.09024, allocations: 0 / 397.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002122/0.09045, allocations: 201.5 kB / 397.5 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-06/0.09046, allocations: 3.984 kB / 397.5 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.09059, allocations: 23.98 kB / 397.5 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.0906, allocations: 4 kB / 397.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.09061, allocations: 0 / 397.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.09061, allocations: 0 / 397.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.09061, allocations: 0 / 397.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.09089, allocations: 207.7 kB / 397.7 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.151e-05/0.09094, allocations: 85.12 kB / 397.8 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.849e-05/0.09096, allocations: 8.016 kB / 397.8 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.888e-05/0.09104, allocations: 0 / 397.8 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.319e-05/0.09107, allocations: 8 kB / 397.8 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.09108, allocations: 3.938 kB / 397.8 MB, free: 2.598 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.685e-05/0.09115, allocations: 111.9 kB / 398 MB, free: 2.488 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.09115, allocations: 3.938 kB / 398 MB, free: 2.484 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002698/0.09142, allocations: 15.95 kB / 398 MB, free: 2.469 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.0005512/0.09198, allocations: 0.7359 MB / 398.7 MB, free: 1.707 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001739/0.09215, allocations: 47.91 kB / 398.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.09215, allocations: 0 / 398.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.422e-05/0.09221, allocations: 23.98 kB / 398.8 MB, free: 1.637 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.09252, allocations: 27.89 kB / 398.8 MB, free: 1.609 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.09428, allocations: 1.577 MB / 400.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.09459, allocations: 0.7002 MB / 401.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.468e-05/0.09464, allocations: 15.84 kB / 401.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.071e-05/0.0947, allocations: 31.42 kB / 401.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.0947, allocations: 0 / 401.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01917/0.1139, allocations: 2.362 MB / 403.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.739/7.853, allocations: 8.047 kB / 403.5 MB, free: 12.76 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.115957558969967]