Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008618/0.0008619, allocations: 95.34 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008477/0.0008478, allocations: 177.9 kB / 16.57 MB, free: 6.379 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.199/1.199, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.271/0.271, allocations: 43.54 MB / 314.5 MB, free: 9.047 MB / 254.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.0004465/0.0004466, allocations: 16 kB / 383.9 MB, free: 8.301 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08998/0.09044, allocations: 58.87 MB / 442.8 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.003582/0.09405, allocations: 3.371 MB / 446.1 MB, free: 9.926 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.09609, allocations: 1.201 MB / 447.3 MB, free: 8.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002992/0.09641, allocations: 23.88 kB / 447.3 MB, free: 8.695 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.09652, allocations: 55.38 kB / 447.4 MB, free: 8.641 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004601/0.09699, allocations: 187.4 kB / 447.6 MB, free: 8.457 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005547/0.09755, allocations: 287.5 kB / 447.9 MB, free: 8.176 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006271/0.09819, allocations: 0.5469 MB / 448.4 MB, free: 7.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003164/0.09851, allocations: 228.8 kB / 448.6 MB, free: 7.395 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003016/0.09882, allocations: 258.8 kB / 448.9 MB, free: 7.141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.09908, allocations: 254.5 kB / 449.1 MB, free: 6.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.038e-05/0.09914, allocations: 24 kB / 449.2 MB, free: 6.867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.099e-05/0.0992, allocations: 20 kB / 449.2 MB, free: 6.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.156e-05/0.09929, allocations: 99.47 kB / 449.3 MB, free: 6.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.686e-05/0.0994, allocations: 153.2 kB / 449.4 MB, free: 6.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004181/0.09982, allocations: 0.5338 MB / 450 MB, free: 6.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-06/0.09983, allocations: 0 / 450 MB, free: 6.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.09984, allocations: 3.984 kB / 450 MB, free: 6.055 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.09985, allocations: 0 / 450 MB, free: 6.055 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.001368/0.1012, allocations: 0.9541 MB / 450.9 MB, free: 5.051 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.848e-05/0.1013, allocations: 8.031 kB / 450.9 MB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.1014, allocations: 90.88 kB / 451 MB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006065/0.102, allocations: 494.5 kB / 451.5 MB, free: 4.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/0.102, allocations: 41.31 kB / 451.5 MB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.409e-05/0.1021, allocations: 63.91 kB / 451.6 MB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008943/0.103, allocations: 0.6076 MB / 452.2 MB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.1031, allocations: 0 / 452.2 MB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.048e-05/0.1031, allocations: 27.95 kB / 452.2 MB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.1031, allocations: 19.98 kB / 452.3 MB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007255/0.1039, allocations: 402.2 kB / 452.6 MB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003405/0.1073, allocations: 3.02 MB / 455.7 MB, free: 60 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1456/0.2529, allocations: 479.4 kB / 456.1 MB, free: 46.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.655e-05/0.2529, allocations: 9.156 kB / 456.1 MB, free: 46.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.026e-05/0.253, allocations: 36.81 kB / 456.2 MB, free: 46.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 2.435e-06/0.253, allocations: 5.531 kB / 456.2 MB, free: 46.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001134/0.2541, allocations: 0.56 MB / 456.7 MB, free: 46.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.2542, allocations: 121.2 kB / 456.9 MB, free: 46.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004793/0.2547, allocations: 0.5407 MB / 457.4 MB, free: 45.97 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.2547, allocations: 34.39 kB / 457.4 MB, free: 45.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.2549, allocations: 374.2 kB / 457.8 MB, free: 45.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.329e-05/0.2549, allocations: 153.8 kB / 458 MB, free: 45.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/0.255, allocations: 15.03 kB / 458 MB, free: 45.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.853e-05/0.2551, allocations: 381.9 kB / 458.3 MB, free: 45.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.2554, allocations: 177.9 kB / 458.5 MB, free: 45.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003926/0.2558, allocations: 402.1 kB / 458.9 MB, free: 45.15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000389/0.2562, allocations: 235.3 kB / 459.1 MB, free: 45.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.2562, allocations: 6.875 kB / 459.1 MB, free: 45.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.000968/0.2572, allocations: 0.6603 MB / 459.8 MB, free: 45.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003445/0.2576, allocations: 2.623 MB / 462.4 MB, free: 42.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.2576, allocations: 8.781 kB / 462.4 MB, free: 42.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.2576, allocations: 11.44 kB / 462.4 MB, free: 42.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004843/0.2581, allocations: 140.3 kB / 462.6 MB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.2581, allocations: 16.34 kB / 462.6 MB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003686/0.2585, allocations: 83.45 kB / 462.7 MB, free: 42.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-05/0.2585, allocations: 28.12 kB / 462.7 MB, free: 42.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.223e-06/0.2585, allocations: 2.75 kB / 462.7 MB, free: 42.25 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007951/0.2593, allocations: 0.5469 MB / 463.3 MB, free: 42.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2594, allocations: 5.969 kB / 463.3 MB, free: 42.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.007e-06/0.2594, allocations: 11.78 kB / 463.3 MB, free: 42.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004409/0.2598, allocations: 139.2 kB / 463.4 MB, free: 42.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.2598, allocations: 21.89 kB / 463.4 MB, free: 42.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003221/0.2602, allocations: 57.88 kB / 463.5 MB, free: 42.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.053e-05/0.2602, allocations: 30.06 kB / 463.5 MB, free: 42.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001966/0.2604, allocations: 277.4 kB / 463.8 MB, free: 41.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.823e-05/0.2605, allocations: 63.59 kB / 463.9 MB, free: 41.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.641e-05/0.2606, allocations: 72.61 kB / 463.9 MB, free: 41.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2606, allocations: 10.33 kB / 463.9 MB, free: 41.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.2606, allocations: 4.516 kB / 463.9 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.2606, allocations: 2.781 kB / 463.9 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005716/0.2612, allocations: 0.5717 MB / 464.5 MB, free: 41.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2612, allocations: 0 / 464.5 MB, free: 41.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004545/0.2617, allocations: 90.36 kB / 464.6 MB, free: 41.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.2617, allocations: 3.031 kB / 464.6 MB, free: 41.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.82e-05/0.2617, allocations: 15.2 kB / 464.6 MB, free: 41.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2617, allocations: 7.031 kB / 464.6 MB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2618, allocations: 0.5 kB / 464.6 MB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.2628, allocations: 0.824 MB / 465.5 MB, free: 41.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.263, allocations: 170.3 kB / 465.6 MB, free: 41.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.939e-05/0.263, allocations: 7.25 kB / 465.6 MB, free: 41.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003386/0.2634, allocations: 36.89 kB / 465.7 MB, free: 41.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.2635, allocations: 33.73 kB / 465.7 MB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/0.2635, allocations: 8.219 kB / 465.7 MB, free: 41.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003298/0.2638, allocations: 370.9 kB / 466.1 MB, free: 41.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2638, allocations: 0 / 466.1 MB, free: 41.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007083/0.2645, allocations: 245.8 kB / 466.3 MB, free: 41.13 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x) * 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 (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.458e-05/0.2646, allocations: 111.3 kB / 466.4 MB, free: 41.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.2658, allocations: 0.752 MB / 467.2 MB, free: 40.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2658, allocations: 0 / 467.2 MB, free: 40.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003196/0.2661, allocations: 203.6 kB / 467.4 MB, free: 40.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007297/0.2669, allocations: 154.8 kB / 467.5 MB, free: 40.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.2685, allocations: 1.68 MB / 469.2 MB, free: 40.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.2688, allocations: 0.9264 MB / 470.1 MB, free: 39.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002844/0.2691, allocations: 79.92 kB / 470.2 MB, free: 39.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.2692, allocations: 41.84 kB / 470.2 MB, free: 39.32 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2692, allocations: 0 / 470.2 MB, free: 39.32 MB / 382.1 MB Notification: Performance of Templates: time 0.008946/0.2782, allocations: 5.732 MB / 476 MB, free: 38.94 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches