Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_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.001207/0.001207, allocations: 116.3 kB / 16.63 MB, free: 6.812 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.001136/0.001136, allocations: 190 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 51.52 kB / 300.2 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09448/0.0956, allocations: 49.44 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00287/0.09851, allocations: 1.735 MB / 351.4 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007527/0.09929, allocations: 486.9 kB / 351.9 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.104e-05/0.09938, allocations: 7.875 kB / 351.9 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.0995, allocations: 7.922 kB / 351.9 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000176/0.09969, allocations: 19.86 kB / 351.9 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001624/0.09986, allocations: 39.95 kB / 352 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000164/0.1, allocations: 103.7 kB / 352.1 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.1002, allocations: 36.95 kB / 352.1 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.309e-05/0.1002, allocations: 47.72 kB / 352.1 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.335e-05/0.1003, allocations: 43.78 kB / 352.2 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.493e-05/0.1004, allocations: 4 kB / 352.2 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.861e-05/0.1004, allocations: 8 kB / 352.2 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.334e-05/0.1005, allocations: 19.92 kB / 352.2 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.033e-05/0.1005, allocations: 39.73 kB / 352.3 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.1007, allocations: 83.92 kB / 352.3 MB, free: 1.977 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1007, allocations: 0 / 352.3 MB, free: 1.977 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.1007, allocations: 4 kB / 352.3 MB, free: 1.973 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1007, allocations: 0 / 352.3 MB, free: 1.973 MB / 286.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.0005307/0.1012, allocations: 413.9 kB / 352.7 MB, free: 1.523 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1013, allocations: 12.03 kB / 352.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.589e-05/0.1013, allocations: 38.73 kB / 352.8 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.34e-05/0.1013, allocations: 16.75 kB / 352.8 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002245/0.1016, allocations: 204.5 kB / 353 MB, free: 1.211 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.1016, allocations: 7.938 kB / 353 MB, free: 1.203 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.526e-05/0.1016, allocations: 15.91 kB / 353 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.1018, allocations: 73.66 kB / 353.1 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.1018, allocations: 0 / 353.1 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.1018, allocations: 4 kB / 353.1 MB, free: 1.105 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1019, allocations: 4 kB / 353.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001245/0.102, allocations: 35.98 kB / 353.1 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005511/0.1025, allocations: 411.9 kB / 353.5 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001452/0.1027, allocations: 54.59 kB / 353.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.755e-05/0.1028, allocations: 28.89 kB / 353.6 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.1028, allocations: 3.938 kB / 353.6 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.1029, allocations: 42.5 kB / 353.7 MB, free: 464 kB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.1029, allocations: 0 / 353.7 MB, free: 464 kB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002795/0.1031, allocations: 97.56 kB / 353.8 MB, free: 360 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.026e-05/0.1032, allocations: 51.41 kB / 353.8 MB, free: 296 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.1033, allocations: 139.3 kB / 354 MB, free: 148 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.505e-05/0.1033, allocations: 29.64 kB / 354 MB, free: 112 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.877e-05/0.1034, allocations: 112.2 kB / 354.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.443e-05/0.1034, allocations: 23.66 kB / 354.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.703e-05/0.1035, allocations: 17.72 kB / 354.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.1036, allocations: 322.8 kB / 354.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.919e-05/0.1037, allocations: 23.94 kB / 354.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.949e-05/0.1037, allocations: 27.91 kB / 354.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/0.1038, allocations: 44.84 kB / 354.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.1038, allocations: 3.938 kB / 354.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001553/0.104, allocations: 89.58 kB / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.104, allocations: 4 kB / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.104, allocations: 0 / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.1041, allocations: 0 / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002201/0.1043, allocations: 43.97 kB / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.1043, allocations: 3.938 kB / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.253e-05/0.1044, allocations: 4.188 kB / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.1044, allocations: 4 kB / 354.7 MB, free: 15.37 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 9.147e-05/0.1045, allocations: 125.8 kB / 354.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.168e-05/0.1045, allocations: 11.91 kB / 354.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.214e-05/0.1045, allocations: 12.31 kB / 354.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1046, allocations: 0 / 354.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1046, allocations: 0 / 354.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.1046, allocations: 3.984 kB / 354.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001947/0.1048, allocations: 201.5 kB / 355 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1048, allocations: 0 / 355 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001509/0.1049, allocations: 23.97 kB / 355.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1049, allocations: 0 / 355.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.105, allocations: 8 kB / 355.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.105, allocations: 4 kB / 355.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.105, allocations: 0 / 355.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002877/0.1053, allocations: 203.3 kB / 355.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.793e-05/0.1053, allocations: 85.02 kB / 355.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.1054, allocations: 0 / 355.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.7e-05/0.1054, allocations: 4 kB / 355.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.777e-05/0.1055, allocations: 8.047 kB / 355.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.1055, allocations: 4 kB / 355.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.855e-05/0.1056, allocations: 112.7 kB / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1056, allocations: 0 / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002311/0.1058, allocations: 16 kB / 355.5 MB, free: 14.47 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.0005136/0.1063, allocations: 0.7435 MB / 356.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001639/0.1065, allocations: 47.97 kB / 356.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1065, allocations: 0 / 356.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.76e-05/0.1066, allocations: 19.94 kB / 356.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003707/0.107, allocations: 36.09 kB / 356.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.1087, allocations: 1.586 MB / 357.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.109, allocations: 0.7041 MB / 358.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.939e-05/0.109, allocations: 7.984 kB / 358.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.028e-05/0.1091, allocations: 31.42 kB / 358.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1091, allocations: 0 / 358.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0133/0.1224, allocations: 2.147 MB / 360.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/0.1226, allocations: 186 kB / 361 MB, free: 8.863 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/1.891, allocations: 4.062 kB / 361 MB, free: 8.859 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches