Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00116/0.00116, allocations: 176 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007236/0.0007236, allocations: 90.28 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003145/0.0003147, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1966/0.1969, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001436/0.1984, allocations: 1.37 MB / 376.5 MB, free: 44.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006793/0.1991, allocations: 0.495 MB / 377 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.783e-05/0.1992, allocations: 5.938 kB / 377 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.661e-05/0.1993, allocations: 11.92 kB / 377.1 MB, free: 43.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.1994, allocations: 15.67 kB / 377.1 MB, free: 43.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000133/0.1996, allocations: 32.7 kB / 377.1 MB, free: 43.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001305/0.1997, allocations: 85.7 kB / 377.2 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.213e-05/0.1998, allocations: 32.73 kB / 377.2 MB, free: 43.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.761e-05/0.1999, allocations: 41.53 kB / 377.3 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.23e-05/0.2, allocations: 31.25 kB / 377.3 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.817e-05/0.2, allocations: 2.406 kB / 377.3 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.435e-05/0.2, allocations: 2.219 kB / 377.3 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.917e-05/0.2001, allocations: 16.45 kB / 377.3 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.708e-05/0.2001, allocations: 65.42 kB / 377.4 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.295e-05/0.2002, allocations: 53.12 kB / 377.4 MB, free: 43.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2002, allocations: 0 / 377.4 MB, free: 43.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2002, allocations: 4 kB / 377.4 MB, free: 43.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.656e-06/0.2002, allocations: 0 / 377.4 MB, free: 43.67 MB / 298.7 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.0004029/0.2006, allocations: 396.1 kB / 377.8 MB, free: 43.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.2007, allocations: 9.688 kB / 377.8 MB, free: 43.27 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.786e-05/0.2007, allocations: 37.03 kB / 377.9 MB, free: 43.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.122e-05/0.2008, allocations: 14.66 kB / 377.9 MB, free: 43.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.2009, allocations: 210.3 kB / 378.1 MB, free: 42.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.2009, allocations: 10.92 kB / 378.1 MB, free: 42.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.201, allocations: 12.5 kB / 378.1 MB, free: 42.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001617/0.2011, allocations: 75.52 kB / 378.2 MB, free: 42.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.2011, allocations: 1.094 kB / 378.2 MB, free: 42.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.2012, allocations: 7.984 kB / 378.2 MB, free: 42.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.2012, allocations: 2.188 kB / 378.2 MB, free: 42.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001159/0.2013, allocations: 54.88 kB / 378.2 MB, free: 42.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004289/0.2017, allocations: 401.4 kB / 378.6 MB, free: 42.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001352/0.2019, allocations: 69.08 kB / 378.7 MB, free: 42.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.238e-05/0.2019, allocations: 31.67 kB / 378.7 MB, free: 42.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.202, allocations: 1.031 kB / 378.7 MB, free: 42.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.236e-05/0.202, allocations: 31.72 kB / 378.8 MB, free: 42.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.202, allocations: 0 / 378.8 MB, free: 42.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002528/0.2022, allocations: 108.7 kB / 378.9 MB, free: 42.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.847e-05/0.2023, allocations: 52.88 kB / 378.9 MB, free: 42.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.092e-05/0.2024, allocations: 151.9 kB / 379.1 MB, free: 42.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.504e-06/0.2024, allocations: 25.7 kB / 379.1 MB, free: 42.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.687e-05/0.2024, allocations: 109.4 kB / 379.2 MB, free: 41.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.2024, allocations: 21.67 kB / 379.2 MB, free: 41.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/0.2024, allocations: 1.312 kB / 379.2 MB, free: 41.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.969e-05/0.2025, allocations: 321.5 kB / 379.5 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.472e-05/0.2026, allocations: 24.39 kB / 379.6 MB, free: 41.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.822e-05/0.2026, allocations: 23.67 kB / 379.6 MB, free: 41.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/0.2027, allocations: 51.47 kB / 379.6 MB, free: 41.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.2027, allocations: 1.156 kB / 379.6 MB, free: 41.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001491/0.2029, allocations: 93.81 kB / 379.7 MB, free: 41.51 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.2029, allocations: 5.5 kB / 379.7 MB, free: 41.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.2029, allocations: 0 / 379.7 MB, free: 41.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.2029, allocations: 1.031 kB / 379.7 MB, free: 41.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.2031, allocations: 37.53 kB / 379.8 MB, free: 41.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.2031, allocations: 4.891 kB / 379.8 MB, free: 41.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.265e-05/0.2032, allocations: 7.25 kB / 379.8 MB, free: 41.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.2032, allocations: 1.312 kB / 379.8 MB, free: 41.5 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.231e-05/0.2033, allocations: 118.8 kB / 379.9 MB, free: 41.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.823e-05/0.2033, allocations: 12.5 kB / 379.9 MB, free: 41.37 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.2033, allocations: 18.17 kB / 379.9 MB, free: 41.35 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.2034, allocations: 1.094 kB / 379.9 MB, free: 41.35 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2034, allocations: 0 / 379.9 MB, free: 41.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.2034, allocations: 0 / 379.9 MB, free: 41.35 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.2035, allocations: 197.2 kB / 380.1 MB, free: 41.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2035, allocations: 4.969 kB / 380.1 MB, free: 41.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.2037, allocations: 28.95 kB / 380.2 MB, free: 41.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2037, allocations: 5.031 kB / 380.2 MB, free: 41.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.2037, allocations: 4 kB / 380.2 MB, free: 41.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.2037, allocations: 1.031 kB / 380.2 MB, free: 41.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2037, allocations: 0 / 380.2 MB, free: 41.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002244/0.2039, allocations: 208.4 kB / 380.4 MB, free: 40.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.306e-05/0.204, allocations: 96.09 kB / 380.5 MB, free: 40.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.204, allocations: 9.094 kB / 380.5 MB, free: 40.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.989e-05/0.2041, allocations: 3.188 kB / 380.5 MB, free: 40.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.12e-05/0.2041, allocations: 1.969 kB / 380.5 MB, free: 40.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.341e-06/0.2041, allocations: 5.016 kB / 380.5 MB, free: 40.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.04e-05/0.2042, allocations: 104 kB / 380.6 MB, free: 40.72 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2042, allocations: 0 / 380.6 MB, free: 40.72 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000209/0.2044, allocations: 16.59 kB / 380.6 MB, free: 40.72 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003427/0.2047, allocations: 0.7423 MB / 381.3 MB, free: 40.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.2049, allocations: 60.16 kB / 381.4 MB, free: 39.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2049, allocations: 0 / 381.4 MB, free: 39.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.694e-05/0.205, allocations: 23.17 kB / 381.4 MB, free: 39.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003053/0.2053, allocations: 21.25 kB / 381.4 MB, free: 39.97 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.2067, allocations: 0.7544 MB / 382.2 MB, free: 39.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001407/0.2069, allocations: 0.7011 MB / 382.9 MB, free: 38.67 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.552e-05/0.2069, allocations: 27.3 kB / 382.9 MB, free: 38.65 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.207, allocations: 0 / 382.9 MB, free: 38.65 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.662/2.869, allocations: 1.519 MB / 384.4 MB, free: 37.88 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches