Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001892/0.001892, allocations: 111.9 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002468/0.002468, allocations: 212 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.484/1.484, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 39.94 kB / 378.2 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2863, allocations: 53.37 MB / 431.6 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003056/0.2894, allocations: 1.714 MB / 433.3 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.2905, allocations: 0.5532 MB / 433.9 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.253e-05/0.2905, allocations: 0 / 433.9 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.2907, allocations: 19.73 kB / 433.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001809/0.2908, allocations: 31.78 kB / 433.9 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.2911, allocations: 59.92 kB / 434 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002036/0.2913, allocations: 107.6 kB / 434.1 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.2914, allocations: 21.3 kB / 434.1 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.2915, allocations: 43.84 kB / 434.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.32e-05/0.2916, allocations: 39.78 kB / 434.2 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.45e-05/0.2916, allocations: 11.94 kB / 434.2 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.728e-05/0.2917, allocations: 12 kB / 434.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.788e-05/0.2917, allocations: 31.84 kB / 434.3 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.83e-05/0.2918, allocations: 43.73 kB / 434.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001862/0.292, allocations: 88.78 kB / 434.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.292, allocations: 0 / 434.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.292, allocations: 0 / 434.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.292, allocations: 0 / 434.4 MB, free: 4.156 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.000631/0.2926, allocations: 337.8 kB / 434.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.2927, allocations: 8.031 kB / 434.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.2928, allocations: 32.83 kB / 434.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000279/0.2931, allocations: 146.9 kB / 434.9 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.2931, allocations: 4.375 kB / 434.9 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.379e-05/0.2931, allocations: 12.12 kB / 434.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000216/0.2933, allocations: 85.58 kB / 435 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.2934, allocations: 3.938 kB / 435 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.2934, allocations: 0 / 435 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.2934, allocations: 4 kB / 435 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000128/0.2935, allocations: 43.97 kB / 435 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006401/0.2942, allocations: 371.1 kB / 435.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001683/0.2943, allocations: 58.59 kB / 435.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.782e-05/0.2944, allocations: 32.89 kB / 435.5 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.2944, allocations: 8 kB / 435.5 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.2945, allocations: 34.5 kB / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.2945, allocations: 0 / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003042/0.2948, allocations: 101.5 kB / 435.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.2948, allocations: 55.41 kB / 435.7 MB, free: 2.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.295, allocations: 144.3 kB / 435.8 MB, free: 2.535 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.295, allocations: 25.7 kB / 435.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.544e-05/0.2951, allocations: 112.2 kB / 436 MB, free: 2.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.048e-05/0.2951, allocations: 27.78 kB / 436 MB, free: 2.363 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.179e-05/0.2951, allocations: 17.72 kB / 436 MB, free: 2.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.2953, allocations: 322.8 kB / 436.3 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.877e-05/0.2954, allocations: 19.98 kB / 436.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.887e-05/0.2954, allocations: 27.97 kB / 436.4 MB, free: 1.969 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.2956, allocations: 52.83 kB / 436.4 MB, free: 1.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2956, allocations: 7.938 kB / 436.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001903/0.2958, allocations: 85.58 kB / 436.5 MB, free: 1.816 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.2958, allocations: 4 kB / 436.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.2958, allocations: 0 / 436.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.2958, allocations: 0 / 436.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002323/0.296, allocations: 35.97 kB / 436.6 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.296, allocations: 4 kB / 436.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.853e-05/0.2961, allocations: 11.94 kB / 436.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.2961, allocations: 11.94 kB / 436.6 MB, free: 1.75 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 0.0001068/0.2962, allocations: 113.8 kB / 436.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.32e-05/0.2962, allocations: 11.89 kB / 436.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.845e-05/0.2963, allocations: 12.34 kB / 436.7 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2963, allocations: 7.984 kB / 436.7 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.2963, allocations: 0 / 436.7 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2963, allocations: 0 / 436.7 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002236/0.2965, allocations: 164.7 kB / 436.9 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.2965, allocations: 0 / 436.9 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.2967, allocations: 27.92 kB / 436.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2967, allocations: 0 / 436.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.2967, allocations: 4 kB / 436.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2967, allocations: 4 kB / 436.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2967, allocations: 0 / 436.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003298/0.297, allocations: 195.8 kB / 437.1 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.744e-05/0.297, allocations: 19.83 kB / 437.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.2971, allocations: 12.05 kB / 437.1 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.663e-05/0.2971, allocations: 0 / 437.1 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.974e-05/0.2972, allocations: 3.938 kB / 437.1 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.2972, allocations: 4 kB / 437.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.905e-05/0.2973, allocations: 113.3 kB / 437.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2973, allocations: 0 / 437.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002386/0.2975, allocations: 19.89 kB / 437.3 MB, free: 0.9844 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.567e-05/0.2976, allocations: 95.23 kB / 437.4 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000176/0.2978, allocations: 51.97 kB / 437.4 MB, free: 0.832 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2978, allocations: 0 / 437.4 MB, free: 0.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.85e-05/0.2978, allocations: 27.92 kB / 437.5 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.2982, allocations: 28.88 kB / 437.5 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006429/0.2988, allocations: 252.9 kB / 437.7 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.2992, allocations: 0.7041 MB / 438.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.614e-05/0.2992, allocations: 7.953 kB / 438.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.966e-05/0.2993, allocations: 15.42 kB / 438.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2993, allocations: 0 / 438.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of Templates: time 0.004043/0.3033, allocations: 0.9512 MB / 439.4 MB, free: 14.81 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.556127946125343]