Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 199.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.5 MB / 244.7 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007485/0.0007485, allocations: 96.83 kB / 296.7 MB, free: 6.711 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003488, allocations: 11.98 kB / 356.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2239, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001359/0.2253, allocations: 1.38 MB / 409.5 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006308/0.2259, allocations: 0.4979 MB / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.919e-05/0.226, allocations: 0 / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.878e-05/0.2261, allocations: 8.734 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.2263, allocations: 20.53 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001381/0.2264, allocations: 35.97 kB / 410.1 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.2266, allocations: 89.84 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.908e-05/0.2267, allocations: 29.09 kB / 410.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.2268, allocations: 37.48 kB / 410.2 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.383e-05/0.2269, allocations: 39.83 kB / 410.3 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.587e-05/0.2269, allocations: 0 / 410.3 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.031e-05/0.2269, allocations: 11.94 kB / 410.3 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.092e-05/0.227, allocations: 17.64 kB / 410.3 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.318e-05/0.227, allocations: 65.44 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.809e-05/0.2271, allocations: 57.14 kB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2271, allocations: 0 / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2271, allocations: 0 / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.057e-06/0.2272, allocations: 1.125 kB / 410.4 MB, free: 25.41 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.0004219/0.2276, allocations: 389.2 kB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.2276, allocations: 12.03 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.768e-05/0.2277, allocations: 42.67 kB / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001241/0.2278, allocations: 25.75 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001541/0.228, allocations: 210.9 kB / 411.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.228, allocations: 8.375 kB / 411.1 MB, free: 24.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.228, allocations: 11.84 kB / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.2282, allocations: 73.67 kB / 411.2 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.2282, allocations: 4 kB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.2282, allocations: 4 kB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.2282, allocations: 11.92 kB / 411.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001053/0.2283, allocations: 43.92 kB / 411.2 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004475/0.2288, allocations: 407.9 kB / 411.6 MB, free: 24.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001234/0.2289, allocations: 66.59 kB / 411.7 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.805e-05/0.229, allocations: 28.89 kB / 411.7 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.229, allocations: 4 kB / 411.7 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.091e-05/0.229, allocations: 30.56 kB / 411.7 MB, free: 23.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/0.229, allocations: 0 / 411.7 MB, free: 23.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002415/0.2293, allocations: 109.5 kB / 411.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.81e-05/0.2293, allocations: 51.41 kB / 411.9 MB, free: 23.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.877e-05/0.2294, allocations: 145.8 kB / 412 MB, free: 23.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.265e-06/0.2294, allocations: 25.7 kB / 412.1 MB, free: 23.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.447e-05/0.2294, allocations: 104 kB / 412.2 MB, free: 23.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.2295, allocations: 23.8 kB / 412.2 MB, free: 23.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-06/0.2295, allocations: 0 / 412.2 MB, free: 23.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.189e-05/0.2295, allocations: 322.8 kB / 412.5 MB, free: 23.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.399e-05/0.2296, allocations: 19.98 kB / 412.5 MB, free: 23.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.604e-05/0.2296, allocations: 31.97 kB / 412.6 MB, free: 23.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.2297, allocations: 52.83 kB / 412.6 MB, free: 22.97 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2298, allocations: 0 / 412.6 MB, free: 22.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001369/0.2299, allocations: 97.47 kB / 412.7 MB, free: 22.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.2299, allocations: 4 kB / 412.7 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.2299, allocations: 0 / 412.7 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.2299, allocations: 3.984 kB / 412.7 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.2301, allocations: 39.97 kB / 412.8 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.2302, allocations: 3.938 kB / 412.8 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.934e-05/0.2302, allocations: 8 kB / 412.8 MB, free: 22.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.2302, allocations: 4 kB / 412.8 MB, free: 22.8 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.255e-05/0.2303, allocations: 113.8 kB / 412.9 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.647e-05/0.2303, allocations: 11.84 kB / 412.9 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.52e-05/0.2303, allocations: 20.28 kB / 412.9 MB, free: 22.65 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.2303, allocations: 0 / 412.9 MB, free: 22.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.2304, allocations: 0 / 412.9 MB, free: 22.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.2304, allocations: 3.938 kB / 412.9 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001337/0.2305, allocations: 193.6 kB / 413.1 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2305, allocations: 3.938 kB / 413.1 MB, free: 22.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.2306, allocations: 27.98 kB / 413.1 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2307, allocations: 3.938 kB / 413.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.2307, allocations: 4 kB / 413.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2307, allocations: 0 / 413.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2307, allocations: 3.984 kB / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002192/0.2309, allocations: 203.7 kB / 413.3 MB, free: 22.15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.517e-05/0.2309, allocations: 100.9 kB / 413.4 MB, free: 22.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.231, allocations: 4 kB / 413.4 MB, free: 22.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.704e-05/0.231, allocations: 4 kB / 413.5 MB, free: 22.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.205e-05/0.2311, allocations: 4 kB / 413.5 MB, free: 22.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.2311, allocations: 3.984 kB / 413.5 MB, free: 22.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.571e-05/0.2311, allocations: 109.8 kB / 413.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2312, allocations: 0 / 413.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002101/0.2314, allocations: 16.06 kB / 413.6 MB, free: 21.89 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.0003312/0.2317, allocations: 0.7358 MB / 414.3 MB, free: 21.13 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001339/0.2318, allocations: 59.97 kB / 414.4 MB, free: 21.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2319, allocations: 0 / 414.4 MB, free: 21.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.348e-05/0.2319, allocations: 23.98 kB / 414.4 MB, free: 21.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003072/0.2322, allocations: 15.98 kB / 414.4 MB, free: 21.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009329/0.2332, allocations: 0.7315 MB / 415.1 MB, free: 20.24 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/0.2333, allocations: 0.7081 MB / 415.9 MB, free: 19.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.137e-05/0.2333, allocations: 27.42 kB / 415.9 MB, free: 19.48 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2334, allocations: 0 / 415.9 MB, free: 19.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.518/2.752, allocations: 1.521 MB / 417.4 MB, free: 17.96 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches