Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001222/0.001222, allocations: 115.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001264, allocations: 217.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.89 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2496, allocations: 50.55 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002714/0.2524, allocations: 1.691 MB / 411.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009216/0.2533, allocations: 0.5494 MB / 412.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.599e-05/0.2534, allocations: 0 / 412.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000106/0.2535, allocations: 11.81 kB / 412.2 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.2537, allocations: 23.8 kB / 412.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.254, allocations: 55.92 kB / 412.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001783/0.2542, allocations: 115.5 kB / 412.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.2543, allocations: 25.11 kB / 412.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.2544, allocations: 43.86 kB / 412.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.219e-05/0.2545, allocations: 51.69 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.2545, allocations: 4 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.216e-05/0.2546, allocations: 16 kB / 412.5 MB, free: 15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.181e-05/0.2547, allocations: 19.92 kB / 412.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.852e-05/0.2547, allocations: 43.73 kB / 412.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.2549, allocations: 91.3 kB / 412.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2549, allocations: 0 / 412.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2549, allocations: 0 / 412.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.2549, allocations: 0 / 412.7 MB, free: 14.86 MB / 334.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.0005554/0.2555, allocations: 412.4 kB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.2555, allocations: 8.031 kB / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.2556, allocations: 24.83 kB / 413.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002532/0.2559, allocations: 216 kB / 413.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.2559, allocations: 4.375 kB / 413.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.281e-05/0.256, allocations: 12.12 kB / 413.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.2561, allocations: 81.59 kB / 413.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.2562, allocations: 0 / 413.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.2562, allocations: 4 kB / 413.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.2562, allocations: 0 / 413.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001125/0.2563, allocations: 47.97 kB / 413.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005171/0.2568, allocations: 403.9 kB / 413.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001423/0.257, allocations: 62.61 kB / 413.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.529e-05/0.2571, allocations: 24.86 kB / 413.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.304e-05/0.2571, allocations: 4 kB / 413.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.2571, allocations: 42.55 kB / 414 MB, free: 13.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.183e-06/0.2571, allocations: 0 / 414 MB, free: 13.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002789/0.2574, allocations: 97.45 kB / 414.1 MB, free: 13.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/0.2574, allocations: 51.41 kB / 414.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.2576, allocations: 146.4 kB / 414.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.2576, allocations: 33.64 kB / 414.3 MB, free: 13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.52e-05/0.2576, allocations: 108 kB / 414.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.378e-05/0.2577, allocations: 27.78 kB / 414.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/0.2577, allocations: 17.72 kB / 414.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.2578, allocations: 322.8 kB / 414.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.88e-05/0.2579, allocations: 15.98 kB / 414.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.792e-05/0.258, allocations: 19.98 kB / 414.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.2581, allocations: 56.92 kB / 414.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2581, allocations: 4 kB / 414.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001653/0.2583, allocations: 89.52 kB / 414.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.2583, allocations: 8 kB / 414.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.2583, allocations: 0 / 414.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.2583, allocations: 0 / 414.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.2585, allocations: 35.97 kB / 415 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.2585, allocations: 0 / 415 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.255e-05/0.2586, allocations: 4 kB / 415 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-06/0.2586, allocations: 4 kB / 415 MB, free: 12.27 MB / 334.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 8.22e-05/0.2587, allocations: 125.7 kB / 415.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.575e-05/0.2587, allocations: 12.09 kB / 415.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.086e-05/0.2588, allocations: 16.3 kB / 415.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2588, allocations: 0 / 415.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2588, allocations: 4 kB / 415.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2588, allocations: 7.938 kB / 415.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002003/0.259, allocations: 201.5 kB / 415.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.259, allocations: 0 / 415.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.2592, allocations: 27.92 kB / 415.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2592, allocations: 0 / 415.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.2592, allocations: 3.984 kB / 415.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2592, allocations: 0 / 415.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2592, allocations: 0 / 415.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002701/0.2595, allocations: 203.4 kB / 415.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.214e-05/0.2595, allocations: 88.98 kB / 415.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.2596, allocations: 4.062 kB / 415.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.466e-05/0.2596, allocations: 11.94 kB / 415.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.637e-05/0.2597, allocations: 3.984 kB / 415.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.822e-06/0.2597, allocations: 0 / 415.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.727e-05/0.2598, allocations: 112.3 kB / 415.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2598, allocations: 0 / 415.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002316/0.26, allocations: 16 kB / 415.8 MB, free: 11.36 MB / 334.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 9.564e-05/0.2601, allocations: 95.23 kB / 415.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001689/0.2603, allocations: 47.98 kB / 416 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2603, allocations: 0 / 416 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.235e-05/0.2604, allocations: 27.92 kB / 416 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.2607, allocations: 26.11 kB / 416 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005623/0.2613, allocations: 286.6 kB / 416.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.2615, allocations: 0.7041 MB / 417 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.627e-05/0.2616, allocations: 11.44 kB / 417 MB, free: 10.1 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2616, allocations: 0 / 417 MB, free: 10.1 MB / 334.1 MB Notification: Performance of Templates: time 0.002626/0.2642, allocations: 1.225 MB / 418.2 MB, free: 8.875 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_trunk_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches