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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001317, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009275/0.0009276, allocations: 113 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007266/0.0007266, allocations: 43.94 kB / 350 MB, free: 64 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2067, allocations: 49.44 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00234/0.2091, allocations: 1.721 MB / 401.2 MB, free: 31.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006513/0.2098, allocations: 499.6 kB / 401.7 MB, free: 31.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.125e-05/0.2099, allocations: 0 / 401.7 MB, free: 31.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.21, allocations: 7.922 kB / 401.7 MB, free: 31.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001563/0.2102, allocations: 11.88 kB / 401.7 MB, free: 31.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001371/0.2104, allocations: 47.94 kB / 401.7 MB, free: 31.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001196/0.2105, allocations: 99.64 kB / 401.8 MB, free: 30.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.878e-05/0.2106, allocations: 36.95 kB / 401.9 MB, free: 30.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.966e-05/0.2107, allocations: 39.78 kB / 401.9 MB, free: 30.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.798e-05/0.2107, allocations: 39.78 kB / 402 MB, free: 30.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.2108, allocations: 4 kB / 402 MB, free: 30.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.462e-05/0.2108, allocations: 4 kB / 402 MB, free: 30.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.181e-05/0.2108, allocations: 27.84 kB / 402 MB, free: 30.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.073e-05/0.2109, allocations: 39.73 kB / 402 MB, free: 30.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.12e-05/0.211, allocations: 81.25 kB / 402.1 MB, free: 30.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.211, allocations: 0 / 402.1 MB, free: 30.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.211, allocations: 4 kB / 402.1 MB, free: 30.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.446e-06/0.211, allocations: 0 / 402.1 MB, free: 30.7 MB / 298.7 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.0004426/0.2115, allocations: 407 kB / 402.5 MB, free: 30.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.2115, allocations: 8.031 kB / 402.5 MB, free: 30.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.115e-05/0.2115, allocations: 12.84 kB / 402.5 MB, free: 30.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.2117, allocations: 204.5 kB / 402.7 MB, free: 29.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.2118, allocations: 11.94 kB / 402.7 MB, free: 29.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/0.2118, allocations: 4 kB / 402.7 MB, free: 29.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.212, allocations: 82.36 kB / 402.8 MB, free: 29.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.212, allocations: 0 / 402.8 MB, free: 29.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.212, allocations: 8 kB / 402.8 MB, free: 29.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.212, allocations: 4 kB / 402.8 MB, free: 29.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.851e-05/0.2121, allocations: 35.97 kB / 402.9 MB, free: 29.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004486/0.2126, allocations: 411.8 kB / 403.3 MB, free: 29.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001274/0.2127, allocations: 70.56 kB / 403.3 MB, free: 29.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.542e-05/0.2128, allocations: 24.86 kB / 403.4 MB, free: 29.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.301e-05/0.2128, allocations: 0 / 403.4 MB, free: 29.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.34e-05/0.2128, allocations: 38.48 kB / 403.4 MB, free: 29.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 7.92e-07/0.2128, allocations: 4 kB / 403.4 MB, free: 29.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002428/0.2131, allocations: 93.58 kB / 403.5 MB, free: 29.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.15e-05/0.2131, allocations: 51.41 kB / 403.5 MB, free: 29.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.469e-05/0.2132, allocations: 148 kB / 403.7 MB, free: 28.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.257e-06/0.2132, allocations: 33.62 kB / 403.7 MB, free: 28.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.698e-05/0.2132, allocations: 104 kB / 403.8 MB, free: 28.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.09e-05/0.2133, allocations: 23.8 kB / 403.9 MB, free: 28.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-05/0.2133, allocations: 21.72 kB / 403.9 MB, free: 28.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.131e-05/0.2133, allocations: 322.8 kB / 404.2 MB, free: 28.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.093e-05/0.2134, allocations: 19.98 kB / 404.2 MB, free: 28.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.166e-05/0.2135, allocations: 19.98 kB / 404.2 MB, free: 28.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.101e-05/0.2136, allocations: 44.84 kB / 404.3 MB, free: 28.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2136, allocations: 0 / 404.3 MB, free: 28.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001275/0.2137, allocations: 89.53 kB / 404.4 MB, free: 28.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.2137, allocations: 8 kB / 404.4 MB, free: 28.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2137, allocations: 0 / 404.4 MB, free: 28.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.2137, allocations: 7.922 kB / 404.4 MB, free: 28.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/0.2139, allocations: 35.97 kB / 404.4 MB, free: 28.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.2139, allocations: 4 kB / 404.4 MB, free: 28.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.187e-05/0.214, allocations: 0 / 404.4 MB, free: 28.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.214, allocations: 8 kB / 404.4 MB, free: 28.15 MB / 298.7 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 5.231e-05/0.2141, allocations: 121.7 kB / 404.5 MB, free: 28.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.609e-05/0.2141, allocations: 11.91 kB / 404.6 MB, free: 28.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.756e-05/0.2141, allocations: 16.28 kB / 404.6 MB, free: 27.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.2142, allocations: 4 kB / 404.6 MB, free: 27.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2142, allocations: 0 / 404.6 MB, free: 27.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2142, allocations: 3.938 kB / 404.6 MB, free: 27.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.2143, allocations: 205.5 kB / 404.8 MB, free: 27.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2143, allocations: 0 / 404.8 MB, free: 27.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.2144, allocations: 19.98 kB / 404.8 MB, free: 27.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.2145, allocations: 0 / 404.8 MB, free: 27.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.2145, allocations: 0 / 404.8 MB, free: 27.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2145, allocations: 256 / 404.8 MB, free: 27.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2145, allocations: 11.92 kB / 404.8 MB, free: 27.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009759/0.2155, allocations: 1.204 MB / 406 MB, free: 26.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.444e-05/0.2155, allocations: 85.05 kB / 406.1 MB, free: 26.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.2155, allocations: 3.984 kB / 406.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.407e-05/0.2156, allocations: 3.938 kB / 406.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.49e-05/0.2156, allocations: 4 kB / 406.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.2156, allocations: 0 / 406.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.294e-05/0.2157, allocations: 119.1 kB / 406.2 MB, free: 26.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2157, allocations: 8.062 kB / 406.2 MB, free: 26.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002779/0.216, allocations: 19.94 kB / 406.2 MB, free: 26.1 MB / 298.7 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 8.082e-05/0.2161, allocations: 91.25 kB / 406.3 MB, free: 26 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001481/0.2162, allocations: 47.97 kB / 406.4 MB, free: 25.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2162, allocations: 0 / 406.4 MB, free: 25.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.276e-05/0.2163, allocations: 31.92 kB / 406.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003274/0.2166, allocations: 23.17 kB / 406.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005142/0.2172, allocations: 397.9 kB / 406.8 MB, free: 25.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001147/0.2173, allocations: 0.7098 MB / 407.5 MB, free: 24.74 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.149e-05/0.2173, allocations: 8.266 kB / 407.5 MB, free: 24.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.06e-05/0.2174, allocations: 11.44 kB / 407.6 MB, free: 24.72 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2174, allocations: 0 / 407.6 MB, free: 24.72 MB / 298.7 MB Notification: Performance of Templates: time 0.002509/0.2199, allocations: 0.9695 MB / 408.5 MB, free: 23.76 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches