Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001377/0.001377, allocations: 178.8 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000808/0.000808, allocations: 93.81 kB / 270.9 MB, free: 8.344 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4666/0.4666, allocations: 43.56 MB / 362.7 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.000342, allocations: 19.98 kB / 431.4 MB, free: 5.91 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09496/0.09531, allocations: 58.84 MB / 490.2 MB, free: 10.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004163/0.09951, allocations: 3.42 MB / 493.7 MB, free: 7.539 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002258/0.1018, allocations: 1.217 MB / 494.9 MB, free: 6.316 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004505/0.1023, allocations: 23.88 kB / 494.9 MB, free: 6.293 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002796/0.1026, allocations: 79.22 kB / 495 MB, free: 6.215 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005344/0.1031, allocations: 139 kB / 495.1 MB, free: 6.078 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007227/0.1038, allocations: 291.6 kB / 495.4 MB, free: 5.793 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008871/0.1047, allocations: 0.7448 MB / 496.1 MB, free: 5.047 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003849/0.1051, allocations: 220.8 kB / 496.4 MB, free: 4.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000396/0.1055, allocations: 242.7 kB / 496.6 MB, free: 4.582 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000338/0.1059, allocations: 258.4 kB / 496.8 MB, free: 4.328 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.215e-05/0.106, allocations: 24 kB / 496.9 MB, free: 4.305 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.529e-05/0.1061, allocations: 28 kB / 496.9 MB, free: 4.277 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.66e-05/0.1062, allocations: 95.48 kB / 497 MB, free: 4.184 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.1063, allocations: 141.3 kB / 497.1 MB, free: 4.039 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005069/0.1068, allocations: 0.5457 MB / 497.7 MB, free: 3.492 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1068, allocations: 0 / 497.7 MB, free: 3.492 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1068, allocations: 3.938 kB / 497.7 MB, free: 3.488 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.1068, allocations: 0 / 497.7 MB, free: 3.488 MB / 378.7 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.00152/0.1084, allocations: 0.9464 MB / 498.6 MB, free: 2.492 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.1084, allocations: 8.031 kB / 498.6 MB, free: 2.484 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.1085, allocations: 90.88 kB / 498.7 MB, free: 2.395 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006438/0.1092, allocations: 0.4945 MB / 499.2 MB, free: 1.859 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.419e-05/0.1092, allocations: 41.31 kB / 499.3 MB, free: 1.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.27e-05/0.1093, allocations: 67.91 kB / 499.3 MB, free: 1.754 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.1103, allocations: 0.6037 MB / 499.9 MB, free: 1.086 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/0.1104, allocations: 11.98 kB / 499.9 MB, free: 1.074 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.117e-05/0.1104, allocations: 23.95 kB / 500 MB, free: 1.051 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.1105, allocations: 16 kB / 500 MB, free: 1.035 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008042/0.1113, allocations: 398.2 kB / 0.4886 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1587/0.27, allocations: 3.023 MB / 0.4916 GB, free: 41.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.271, allocations: 467.8 kB / 0.492 GB, free: 41.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003907/0.2715, allocations: 177.1 kB / 0.4922 GB, free: 41.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.391e-05/0.2715, allocations: 6.031 kB / 0.4922 GB, free: 41.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/0.2715, allocations: 42.52 kB / 0.4922 GB, free: 40.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 2.464e-06/0.2715, allocations: 0 / 0.4922 GB, free: 40.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.001309/0.2729, allocations: 0.5746 MB / 0.4928 GB, free: 40.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.2729, allocations: 111.7 kB / 0.4929 GB, free: 40.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005858/0.2735, allocations: 0.5383 MB / 0.4934 GB, free: 40.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.2735, allocations: 33.23 kB / 0.4935 GB, free: 40.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.2737, allocations: 378.4 kB / 0.4938 GB, free: 40.46 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.2739, allocations: 153.4 kB / 0.494 GB, free: 40.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.494e-05/0.2739, allocations: 12.19 kB / 0.494 GB, free: 40.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.732e-05/0.274, allocations: 377.3 kB / 0.4944 GB, free: 40.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004203/0.2744, allocations: 187.5 kB / 0.4945 GB, free: 40.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000528/0.2749, allocations: 401.4 kB / 0.4949 GB, free: 39.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004518/0.2754, allocations: 237.3 kB / 0.4951 GB, free: 39.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.2754, allocations: 5.422 kB / 0.4951 GB, free: 39.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001162/0.2766, allocations: 0.6572 MB / 0.4958 GB, free: 39.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/0.2767, allocations: 299.1 kB / 0.4961 GB, free: 39.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.2767, allocations: 6.719 kB / 0.4961 GB, free: 39.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.2767, allocations: 12.5 kB / 0.4961 GB, free: 39.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005576/0.2773, allocations: 145.4 kB / 0.4962 GB, free: 39.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/0.2773, allocations: 15.11 kB / 0.4962 GB, free: 39.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003843/0.2777, allocations: 74.45 kB / 0.4963 GB, free: 39.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.203e-05/0.2778, allocations: 29.77 kB / 0.4963 GB, free: 39.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.513e-06/0.2778, allocations: 4.125 kB / 0.4963 GB, free: 39.28 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009379/0.2787, allocations: 0.5447 MB / 0.4969 GB, free: 39.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-06/0.2788, allocations: 11.7 kB / 0.4969 GB, free: 39.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.2788, allocations: 11.75 kB / 0.4969 GB, free: 39.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005032/0.2793, allocations: 141.8 kB / 0.497 GB, free: 39.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.2793, allocations: 16.61 kB / 0.4971 GB, free: 39.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003323/0.2796, allocations: 63.55 kB / 0.4971 GB, free: 39.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/0.2797, allocations: 25.34 kB / 0.4971 GB, free: 39.18 MB / 378.7 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.0002401/0.2799, allocations: 273.6 kB / 0.4974 GB, free: 38.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.28, allocations: 67.03 kB / 0.4975 GB, free: 38.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001327/0.2802, allocations: 79 kB / 0.4975 GB, free: 38.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.2802, allocations: 5.219 kB / 0.4975 GB, free: 38.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.2802, allocations: 4.438 kB / 0.4975 GB, free: 38.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.2802, allocations: 3.328 kB / 0.4975 GB, free: 38.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007792/0.281, allocations: 0.5717 MB / 0.4981 GB, free: 38.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.281, allocations: 2.688 kB / 0.4981 GB, free: 38.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005131/0.2815, allocations: 91.22 kB / 0.4982 GB, free: 38.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.2816, allocations: 5.344 kB / 0.4982 GB, free: 38.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.326e-05/0.2816, allocations: 11.88 kB / 0.4982 GB, free: 38.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.2816, allocations: 6.078 kB / 0.4982 GB, free: 38.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2816, allocations: 3.938 kB / 0.4982 GB, free: 38.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.2829, allocations: 0.8043 MB / 0.499 GB, free: 38.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001658/0.2831, allocations: 172.5 kB / 0.4992 GB, free: 38.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.71e-05/0.2832, allocations: 10.02 kB / 0.4992 GB, free: 38.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003554/0.2836, allocations: 39.17 kB / 0.4992 GB, free: 38.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.477e-05/0.2836, allocations: 32.23 kB / 0.4992 GB, free: 38.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.2837, allocations: 9.891 kB / 0.4993 GB, free: 38.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003667/0.284, allocations: 369.4 kB / 0.4996 GB, free: 38.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.284, allocations: 6.453 kB / 0.4996 GB, free: 38.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007435/0.2848, allocations: 242.6 kB / 0.4998 GB, free: 38.04 MB / 378.7 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 0.0001012/0.2849, allocations: 110.1 kB / 0.5 GB, free: 37.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.2862, allocations: 0.7475 MB / 0.5007 GB, free: 37.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2863, allocations: 0 / 0.5007 GB, free: 37.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003565/0.2866, allocations: 202.1 kB / 0.5009 GB, free: 37.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009169/0.2875, allocations: 163.2 kB / 0.501 GB, free: 37.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001866/0.2894, allocations: 1.718 MB / 0.5027 GB, free: 36.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.2897, allocations: 0.9109 MB / 0.5036 GB, free: 35.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.2899, allocations: 42.16 kB / 0.5036 GB, free: 35.85 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2899, allocations: 0 / 0.5036 GB, free: 35.85 MB / 378.7 MB Notification: Performance of Templates: time 0.009492/0.2994, allocations: 7.617 MB / 0.5111 GB, free: 35.13 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches