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) 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) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001498/0.001498, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001826/0.001826, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 66.89 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08465/0.08578, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002803/0.08862, allocations: 1.688 MB / 359.3 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000951/0.08959, allocations: 0.5549 MB / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.514e-05/0.08969, allocations: 0 / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.094e-05/0.08981, allocations: 11.81 kB / 359.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001758/0.08999, allocations: 27.78 kB / 359.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.09021, allocations: 63.86 kB / 359.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001617/0.09038, allocations: 95.7 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.09052, allocations: 37.08 kB / 360 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.09067, allocations: 51.77 kB / 360.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.623e-05/0.09076, allocations: 39.78 kB / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.949e-05/0.09079, allocations: 8 kB / 360.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.595e-05/0.09084, allocations: 16 kB / 360.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.286e-05/0.0909, allocations: 23.91 kB / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.988e-05/0.09096, allocations: 39.73 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001466/0.09111, allocations: 91.92 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.09112, allocations: 0 / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.09113, allocations: 0 / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.09113, allocations: 0 / 360.3 MB, free: 11.25 MB / 302.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.0005332/0.09167, allocations: 410.9 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.09172, allocations: 16.03 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.794e-05/0.09177, allocations: 38.73 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.09191, allocations: 20.75 kB / 360.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001966/0.09212, allocations: 211.6 kB / 361 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-06/0.09214, allocations: 4.375 kB / 361 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.619e-05/0.09217, allocations: 11.94 kB / 361 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001686/0.09234, allocations: 88.12 kB / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.09236, allocations: 0 / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.09237, allocations: 0 / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.09239, allocations: 4 kB / 361.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.09251, allocations: 43.92 kB / 361.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005158/0.09303, allocations: 411.8 kB / 361.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.09319, allocations: 58.59 kB / 361.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.86e-05/0.09327, allocations: 32.89 kB / 361.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/0.09329, allocations: 0 / 361.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.09332, allocations: 38.56 kB / 361.7 MB, free: 9.715 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.09333, allocations: 3.938 kB / 361.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.000282/0.09361, allocations: 105.5 kB / 361.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.09366, allocations: 55.41 kB / 361.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.09378, allocations: 138.4 kB / 362 MB, free: 9.383 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.0938, allocations: 29.7 kB / 362 MB, free: 9.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.415e-05/0.09386, allocations: 112.1 kB / 362.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.09389, allocations: 15.8 kB / 362.1 MB, free: 9.219 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.869e-05/0.09394, allocations: 17.72 kB / 362.1 MB, free: 9.195 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.09405, allocations: 322.8 kB / 362.5 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.294e-05/0.09412, allocations: 19.98 kB / 362.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.02e-05/0.09418, allocations: 20 kB / 362.5 MB, free: 8.832 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001126/0.0943, allocations: 48.78 kB / 362.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.09431, allocations: 0 / 362.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001769/0.09449, allocations: 97.5 kB / 362.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.087e-05/0.09453, allocations: 4 kB / 362.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.09454, allocations: 3.938 kB / 362.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.09455, allocations: 0 / 362.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/0.09478, allocations: 43.97 kB / 362.7 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.09479, allocations: 0 / 362.7 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.719e-05/0.09486, allocations: 11.83 kB / 362.7 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.09487, allocations: 4 kB / 362.7 MB, free: 8.613 MB / 302.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 8.449e-05/0.09496, allocations: 125.7 kB / 362.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.495e-05/0.095, allocations: 11.84 kB / 362.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.039e-05/0.09504, allocations: 12.31 kB / 362.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.09505, allocations: 0 / 362.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.09505, allocations: 0 / 362.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.09506, allocations: 7.984 kB / 362.9 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001944/0.09526, allocations: 193.6 kB / 363 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.09528, allocations: 3.938 kB / 363 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.09543, allocations: 19.98 kB / 363.1 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.09544, allocations: 0 / 363.1 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.09546, allocations: 4 kB / 363.1 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.09547, allocations: 0 / 363.1 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.09547, allocations: 0 / 363.1 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002752/0.09575, allocations: 211.6 kB / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.039e-05/0.0958, allocations: 84.95 kB / 363.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.169e-05/0.09583, allocations: 7.969 kB / 363.4 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.598e-05/0.09592, allocations: 7.984 kB / 363.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.746e-05/0.09596, allocations: 4 kB / 363.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.09597, allocations: 0 / 363.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.321e-05/0.09604, allocations: 110.6 kB / 363.5 MB, free: 7.734 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09605, allocations: 0 / 363.5 MB, free: 7.734 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000236/0.09629, allocations: 23.91 kB / 363.5 MB, free: 7.711 MB / 302.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.0004735/0.09677, allocations: 0.7281 MB / 364.2 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001579/0.09694, allocations: 52.14 kB / 364.3 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.09695, allocations: 0 / 364.3 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.255e-05/0.09702, allocations: 28.05 kB / 364.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003337/0.09737, allocations: 19.98 kB / 364.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/0.09904, allocations: 1.578 MB / 365.9 MB, free: 5.199 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.09931, allocations: 0.7012 MB / 366.6 MB, free: 4.473 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.193e-05/0.09936, allocations: 4 kB / 366.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.744e-05/0.09943, allocations: 31.42 kB / 366.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.09943, allocations: 4 kB / 366.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.1171, allocations: 2.267 MB / 368.9 MB, free: 2.219 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.415/7.532, allocations: 18.81 kB / 368.9 MB, free: 2.203 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches