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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 104.1 kB / 17.58 MB, free: 5.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 191.9 kB / 18.51 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.239/1.239, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB 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.001105/0.001105, allocations: 52.14 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07224/0.07336, allocations: 46.64 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002762/0.07616, allocations: 1.669 MB / 329 MB, free: 2.699 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008466/0.07703, allocations: 0.5231 MB / 329.6 MB, free: 2.168 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.419e-05/0.07713, allocations: 4 kB / 329.6 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.975e-05/0.07724, allocations: 11.86 kB / 329.6 MB, free: 2.152 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001622/0.07741, allocations: 23.8 kB / 329.6 MB, free: 2.129 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001582/0.07758, allocations: 55.8 kB / 329.7 MB, free: 2.074 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001447/0.07773, allocations: 95.7 kB / 329.8 MB, free: 1.98 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.07784, allocations: 29.11 kB / 329.8 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.741e-05/0.07793, allocations: 43.78 kB / 329.8 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.676e-05/0.07801, allocations: 43.78 kB / 329.9 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.377e-05/0.07804, allocations: 8 kB / 329.9 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.56e-05/0.07807, allocations: 4 kB / 329.9 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.655e-05/0.07813, allocations: 19.92 kB / 329.9 MB, free: 1.836 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.288e-05/0.07818, allocations: 47.72 kB / 329.9 MB, free: 1.789 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001077/0.0783, allocations: 79.94 kB / 330 MB, free: 1.711 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.07831, allocations: 4 kB / 330 MB, free: 1.707 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.07832, allocations: 3.938 kB / 330 MB, free: 1.703 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.728e-06/0.07833, allocations: 0 / 330 MB, free: 1.703 MB / 270.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.0004958/0.07883, allocations: 411 kB / 330.4 MB, free: 1.254 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.07887, allocations: 8.031 kB / 330.4 MB, free: 1.246 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.048e-05/0.07892, allocations: 42.73 kB / 330.5 MB, free: 1.195 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.635e-05/0.07896, allocations: 16.75 kB / 330.5 MB, free: 1.18 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.07915, allocations: 196.8 kB / 330.7 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.172e-06/0.07916, allocations: 8.375 kB / 330.7 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/0.0792, allocations: 15.84 kB / 330.7 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.07938, allocations: 85.59 kB / 330.8 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.07939, allocations: 0 / 330.8 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.07941, allocations: 0 / 330.8 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.07942, allocations: 0 / 330.8 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.07953, allocations: 43.92 kB / 330.8 MB, free: 0.793 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005232/0.08006, allocations: 408 kB / 331.2 MB, free: 340 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001361/0.08021, allocations: 54.59 kB / 331.3 MB, free: 276 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.03e-05/0.08029, allocations: 32.89 kB / 331.3 MB, free: 240 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.08031, allocations: 0 / 331.3 MB, free: 240 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.08034, allocations: 38.56 kB / 331.4 MB, free: 192 kB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.08035, allocations: 3.938 kB / 331.4 MB, free: 188 kB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002765/0.08063, allocations: 101.5 kB / 331.5 MB, free: 80 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.858e-05/0.08067, allocations: 51.41 kB / 331.5 MB, free: 16 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.08079, allocations: 141.8 kB / 331.7 MB, free: 15.87 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.08082, allocations: 29.7 kB / 331.7 MB, free: 15.83 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.774e-05/0.08088, allocations: 109 kB / 331.8 MB, free: 15.72 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.9e-05/0.08092, allocations: 31.62 kB / 331.8 MB, free: 15.69 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.3e-05/0.08096, allocations: 17.72 kB / 331.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.702e-05/0.08107, allocations: 322.8 kB / 332.2 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.072e-05/0.08113, allocations: 19.98 kB / 332.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.917e-05/0.08119, allocations: 19.98 kB / 332.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.08131, allocations: 52.78 kB / 332.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.08132, allocations: 3.938 kB / 332.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001631/0.08149, allocations: 97.45 kB / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.08152, allocations: 8 kB / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.08153, allocations: 0 / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.08154, allocations: 0 / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/0.08178, allocations: 35.97 kB / 332.4 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.08179, allocations: 0 / 332.4 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.397e-05/0.08185, allocations: 4 kB / 332.4 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.08187, allocations: 3.984 kB / 332.4 MB, free: 15.09 MB / 286.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.496e-05/0.08197, allocations: 121.8 kB / 332.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.467e-05/0.08201, allocations: 12.09 kB / 332.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.318e-05/0.08205, allocations: 12.31 kB / 332.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.08206, allocations: 0 / 332.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.08207, allocations: 4 kB / 332.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.08207, allocations: 0 / 332.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001997/0.08228, allocations: 197.6 kB / 332.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.08229, allocations: 3.938 kB / 332.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.08244, allocations: 23.97 kB / 332.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.08245, allocations: 4 kB / 332.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.08247, allocations: 4 kB / 332.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.08247, allocations: 0 / 332.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.08248, allocations: 0 / 332.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002758/0.08276, allocations: 207.3 kB / 333 MB, free: 14.44 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.087e-05/0.08282, allocations: 88.98 kB / 333.1 MB, free: 14.33 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.08285, allocations: 0 / 333.1 MB, free: 14.33 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.302e-05/0.08293, allocations: 4.047 kB / 333.1 MB, free: 14.33 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.944e-05/0.08297, allocations: 8 kB / 333.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.08298, allocations: 0 / 333.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.192e-05/0.08307, allocations: 119.9 kB / 333.2 MB, free: 14.2 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.08307, allocations: 0 / 333.2 MB, free: 14.2 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002294/0.08331, allocations: 15.94 kB / 333.2 MB, free: 14.19 MB / 286.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.0005193/0.08383, allocations: 0.7319 MB / 333.9 MB, free: 13.43 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001614/0.08401, allocations: 51.91 kB / 334 MB, free: 13.38 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.08402, allocations: 0 / 334 MB, free: 13.38 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.211e-05/0.08408, allocations: 27.98 kB / 334 MB, free: 13.35 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.08444, allocations: 23.86 kB / 334 MB, free: 13.33 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.08618, allocations: 1.565 MB / 335.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.08647, allocations: 0.7039 MB / 336.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.198e-05/0.08653, allocations: 11.97 kB / 336.3 MB, free: 10.94 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.348e-05/0.0866, allocations: 31.42 kB / 336.3 MB, free: 10.91 MB / 286.1 MB Notification: Performance of SimCode: time 4.71e-07/0.0866, allocations: 0 / 336.3 MB, free: 10.91 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7541/0.8407, allocations: 2.234 MB / 338.6 MB, free: 8.621 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.647/10.49, allocations: 35.38 kB / 338.6 MB, free: 8.586 MB / 286.1 MB (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 --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) 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) Reference file matches