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.001231/0.001231, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.0013/0.0013, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.47/1.47, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001664/0.001664, allocations: 52.39 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09596/0.09763, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003109/0.1008, allocations: 1.673 MB / 376.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000998/0.1018, allocations: 0.5353 MB / 376.8 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.478e-05/0.1019, allocations: 4 kB / 376.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001601/0.1021, allocations: 7.875 kB / 376.9 MB, free: 2.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.1022, allocations: 19.8 kB / 376.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001741/0.1024, allocations: 55.86 kB / 376.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001844/0.1026, allocations: 99.7 kB / 377 MB, free: 2.688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.1027, allocations: 29.09 kB / 377.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.826e-05/0.1028, allocations: 43.83 kB / 377.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.103, allocations: 47.72 kB / 377.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.103, allocations: 8 kB / 377.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.706e-05/0.1031, allocations: 8 kB / 377.2 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.025e-05/0.1031, allocations: 23.91 kB / 377.2 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.739e-05/0.1032, allocations: 43.73 kB / 377.2 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.1033, allocations: 87.52 kB / 377.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1034, allocations: 0 / 377.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1034, allocations: 0 / 377.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1034, allocations: 0 / 377.3 MB, free: 2.402 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.000696/0.1041, allocations: 410.9 kB / 377.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.1041, allocations: 16.03 kB / 377.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.941e-05/0.1042, allocations: 34.75 kB / 377.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.817e-05/0.1042, allocations: 16.84 kB / 377.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000294/0.1045, allocations: 200.8 kB / 378 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.1045, allocations: 8.359 kB / 378 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.678e-05/0.1046, allocations: 15.88 kB / 378 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002382/0.1048, allocations: 69.67 kB / 378.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.1048, allocations: 0 / 378.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.1049, allocations: 4 kB / 378.1 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.1049, allocations: 8 kB / 378.1 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001146/0.105, allocations: 39.97 kB / 378.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006151/0.1056, allocations: 407.9 kB / 378.5 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000151/0.1058, allocations: 62.58 kB / 378.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.077e-05/0.1059, allocations: 36.83 kB / 378.6 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.1059, allocations: 0 / 378.6 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.1059, allocations: 34.5 kB / 378.6 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 9.32e-07/0.1059, allocations: 4 kB / 378.6 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002837/0.1062, allocations: 97.56 kB / 378.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.1063, allocations: 51.41 kB / 378.8 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.1064, allocations: 149.8 kB / 378.9 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.471e-05/0.1065, allocations: 29.64 kB / 379 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.073e-05/0.1066, allocations: 108.2 kB / 379.1 MB, free: 424 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.292e-05/0.1066, allocations: 19.86 kB / 379.1 MB, free: 404 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.262e-05/0.1067, allocations: 21.7 kB / 379.1 MB, free: 376 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.1068, allocations: 322.8 kB / 379.4 MB, free: 44 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.126e-05/0.1069, allocations: 20 kB / 379.4 MB, free: 24 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.176e-05/0.1069, allocations: 19.92 kB / 379.5 MB, free: 4 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1729/0.2798, allocations: 47.59 kB / 379.5 MB, free: 12.87 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2799, allocations: 1.094 kB / 379.5 MB, free: 12.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000198/0.2801, allocations: 89.05 kB / 379.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.2801, allocations: 5.828 kB / 379.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2801, allocations: 0 / 379.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.2801, allocations: 0 / 379.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.2804, allocations: 42.31 kB / 379.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.2804, allocations: 1.375 kB / 379.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.835e-05/0.2805, allocations: 8.078 kB / 379.7 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.2805, allocations: 2.828 kB / 379.7 MB, free: 12.84 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 7.616e-05/0.2806, allocations: 120.1 kB / 379.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.35e-05/0.2806, allocations: 11.73 kB / 379.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.204e-05/0.2807, allocations: 13.23 kB / 379.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2807, allocations: 0 / 379.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.2807, allocations: 4.953 kB / 379.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2807, allocations: 0.5 kB / 379.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001847/0.2809, allocations: 202.2 kB / 380 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2809, allocations: 0 / 380 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.281, allocations: 25.86 kB / 380 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.2811, allocations: 1.375 kB / 380 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.2811, allocations: 0.6094 kB / 380 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.2811, allocations: 5.797 kB / 380 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2811, allocations: 0 / 380 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.2814, allocations: 204.5 kB / 380.2 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.919e-05/0.2814, allocations: 85.44 kB / 380.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.2814, allocations: 0.8438 kB / 380.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.906e-05/0.2815, allocations: 6.969 kB / 380.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.037e-05/0.2816, allocations: 3.719 kB / 380.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.2816, allocations: 4.844 kB / 380.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.79e-05/0.2817, allocations: 116 kB / 380.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2817, allocations: 0 / 380.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002274/0.2819, allocations: 19.67 kB / 380.5 MB, free: 12.23 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.0004316/0.2823, allocations: 0.7358 MB / 381.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001668/0.2825, allocations: 45.91 kB / 381.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2825, allocations: 0 / 381.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.844e-05/0.2826, allocations: 30.73 kB / 381.3 MB, free: 11.57 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.2829, allocations: 26.08 kB / 381.3 MB, free: 11.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.2844, allocations: 1.567 MB / 382.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/0.2845, allocations: 0.7086 MB / 383.6 MB, free: 9.66 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.755e-05/0.2846, allocations: 14.19 kB / 383.6 MB, free: 9.656 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.163e-05/0.2847, allocations: 25.73 kB / 383.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2847, allocations: 4.547 kB / 383.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02794/0.3126, allocations: 2.309 MB / 385.9 MB, free: 9.102 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.899/8.212, allocations: 5.297 kB / 385.9 MB, free: 9.098 MB / 318.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