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.001819/0.001819, allocations: 113.4 kB / 17.73 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.002111/0.002111, allocations: 184.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.421/1.421, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.001773/0.001774, allocations: 55.92 kB / 328 MB, free: 3.832 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09055/0.09233, allocations: 46.61 MB / 374.6 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003153/0.09554, allocations: 1.68 MB / 376.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.09665, allocations: 0.5275 MB / 376.8 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.327e-05/0.09677, allocations: 4 kB / 376.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001063/0.09689, allocations: 11.86 kB / 376.9 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001846/0.09711, allocations: 27.78 kB / 376.9 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001804/0.0973, allocations: 39.89 kB / 376.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001854/0.0975, allocations: 107.7 kB / 377 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.09763, allocations: 33.11 kB / 377.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.63e-05/0.09773, allocations: 39.8 kB / 377.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.406e-05/0.09784, allocations: 43.77 kB / 377.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.176e-05/0.09787, allocations: 4 kB / 377.1 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.878e-05/0.09789, allocations: 8 kB / 377.2 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.13e-05/0.09797, allocations: 19.92 kB / 377.2 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.811e-05/0.09803, allocations: 43.73 kB / 377.2 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001627/0.0982, allocations: 87.52 kB / 377.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.09821, allocations: 7.938 kB / 377.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.09822, allocations: 0 / 377.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.09823, allocations: 0 / 377.3 MB, free: 2.41 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.0006311/0.09887, allocations: 411 kB / 377.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.09891, allocations: 8.031 kB / 377.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.197e-05/0.09896, allocations: 38.75 kB / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.031e-05/0.09901, allocations: 16.83 kB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000318/0.09933, allocations: 212.7 kB / 378 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.09935, allocations: 8.375 kB / 378 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/0.09939, allocations: 7.938 kB / 378 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.09959, allocations: 77.66 kB / 378.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.547e-06/0.09961, allocations: 0 / 378.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.09962, allocations: 0 / 378.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.09963, allocations: 7.984 kB / 378.1 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001191/0.09976, allocations: 39.97 kB / 378.1 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006735/0.1004, allocations: 408 kB / 378.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/0.1006, allocations: 62.59 kB / 378.6 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.56e-05/0.1007, allocations: 32.83 kB / 378.6 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.391e-05/0.1007, allocations: 0 / 378.6 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.1007, allocations: 38.5 kB / 378.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.163e-06/0.1008, allocations: 0 / 378.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003108/0.1011, allocations: 101.5 kB / 378.7 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.1011, allocations: 51.41 kB / 378.8 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.1013, allocations: 149.7 kB / 378.9 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.1013, allocations: 25.7 kB / 379 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.737e-05/0.1014, allocations: 108.2 kB / 379.1 MB, free: 432 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.026e-05/0.1014, allocations: 23.84 kB / 379.1 MB, free: 408 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.146e-05/0.1015, allocations: 21.72 kB / 379.1 MB, free: 380 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1016, allocations: 322.8 kB / 379.4 MB, free: 48 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.177e-05/0.1017, allocations: 19.92 kB / 379.5 MB, free: 28 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.081e-05/0.1018, allocations: 16 kB / 379.5 MB, free: 12 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1628/0.2646, allocations: 53.05 kB / 379.5 MB, free: 12.85 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.2646, allocations: 0 / 379.5 MB, free: 12.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002012/0.2648, allocations: 84 kB / 379.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.2648, allocations: 10.06 kB / 379.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.2649, allocations: 0 / 379.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.2649, allocations: 0 / 379.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002268/0.2651, allocations: 39.75 kB / 379.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.2651, allocations: 0.6094 kB / 379.7 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.182e-05/0.2652, allocations: 15.25 kB / 379.7 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.2652, allocations: 1.969 kB / 379.7 MB, free: 12.82 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.954e-05/0.2653, allocations: 125.2 kB / 379.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.262e-05/0.2653, allocations: 4.953 kB / 379.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.416e-05/0.2654, allocations: 13.06 kB / 379.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2654, allocations: 1.094 kB / 379.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2654, allocations: 0 / 379.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.2654, allocations: 1.625 kB / 379.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.2656, allocations: 202.5 kB / 380 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2656, allocations: 0 / 380 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001401/0.2657, allocations: 25.55 kB / 380 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.2658, allocations: 5.156 kB / 380 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.2658, allocations: 0.7031 kB / 380 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2658, allocations: 1.375 kB / 380 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.2658, allocations: 0.8438 kB / 380 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/0.266, allocations: 202.3 kB / 380.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.858e-05/0.2661, allocations: 86.25 kB / 380.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.2661, allocations: 4.125 kB / 380.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.154e-05/0.2662, allocations: 4.672 kB / 380.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.711e-05/0.2662, allocations: 3.547 kB / 380.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-06/0.2662, allocations: 3.938 kB / 380.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.175e-05/0.2663, allocations: 121.1 kB / 380.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2663, allocations: 3.656 kB / 380.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002341/0.2666, allocations: 14.62 kB / 380.5 MB, free: 12.21 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.0003775/0.2669, allocations: 0.7316 MB / 381.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001761/0.2671, allocations: 51.75 kB / 381.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2671, allocations: 1.438 kB / 381.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.528e-05/0.2672, allocations: 25.42 kB / 381.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.2676, allocations: 24.31 kB / 381.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.269, allocations: 1.573 MB / 382.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001287/0.2692, allocations: 0.71 MB / 383.6 MB, free: 9.637 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.896e-05/0.2692, allocations: 12.72 kB / 383.6 MB, free: 9.633 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.585e-05/0.2693, allocations: 29.78 kB / 383.6 MB, free: 9.625 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2693, allocations: 1.375 kB / 383.6 MB, free: 9.625 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02669/0.296, allocations: 2.304 MB / 385.9 MB, free: 9.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.964/8.26, allocations: 5.828 kB / 385.9 MB, free: 9.086 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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