Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(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_trunk_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_trunk_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001419/0.001419, allocations: 114.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001539/0.001539, allocations: 204.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2093/0.2093, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 84.22 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1084, allocations: 62.45 MB / 481.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005558/0.114, allocations: 4.027 MB / 485.5 MB, free: 476 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.1167, allocations: 1.254 MB / 486.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005659/0.1173, allocations: 23.88 kB / 486.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003341/0.1176, allocations: 122.7 kB / 486.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005713/0.1182, allocations: 162.5 kB / 487 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008638/0.1191, allocations: 407.1 kB / 487.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008692/0.12, allocations: 0.8346 MB / 488.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004554/0.1204, allocations: 293 kB / 488.6 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004565/0.1209, allocations: 322.6 kB / 488.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003402/0.1213, allocations: 322.2 kB / 489.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.422e-05/0.1213, allocations: 64 kB / 489.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001206/0.1215, allocations: 79.92 kB / 489.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.1216, allocations: 151.4 kB / 489.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002624/0.1219, allocations: 353.8 kB / 489.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000742/0.1226, allocations: 0.786 MB / 490.6 MB, free: 11.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1226, allocations: 3.938 kB / 490.6 MB, free: 11.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1226, allocations: 4 kB / 490.6 MB, free: 11.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.1226, allocations: 0 / 490.6 MB, free: 11.3 MB / 366.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.001652/0.1243, allocations: 1.067 MB / 491.7 MB, free: 10.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.1244, allocations: 9.109 kB / 491.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002214/0.1246, allocations: 95.91 kB / 491.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008065/0.1254, allocations: 0.5421 MB / 492.3 MB, free: 9.504 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.066e-05/0.1254, allocations: 45.69 kB / 492.4 MB, free: 9.457 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.54e-05/0.1255, allocations: 64.12 kB / 492.4 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000945/0.1265, allocations: 0.6162 MB / 493.1 MB, free: 8.719 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.1265, allocations: 7.922 kB / 493.1 MB, free: 8.711 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.473e-05/0.1266, allocations: 28 kB / 493.1 MB, free: 8.684 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.1266, allocations: 12 kB / 493.1 MB, free: 8.672 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000709/0.1273, allocations: 382.2 kB / 493.5 MB, free: 8.297 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003749/0.1311, allocations: 2.989 MB / 496.5 MB, free: 5.168 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009523/0.1321, allocations: 448.8 kB / 496.9 MB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003334/0.1324, allocations: 165.7 kB / 497.1 MB, free: 4.543 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.169e-05/0.1325, allocations: 8 kB / 497.1 MB, free: 4.535 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/0.1325, allocations: 42.58 kB / 497.1 MB, free: 4.484 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 3.937e-06/0.1325, allocations: 0 / 497.1 MB, free: 4.484 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.00123/0.1338, allocations: 0.552 MB / 497.7 MB, free: 3.926 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.313e-05/0.1339, allocations: 132.5 kB / 497.8 MB, free: 3.766 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00064/0.1345, allocations: 0.5509 MB / 498.3 MB, free: 3.203 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.998e-05/0.1346, allocations: 33.7 kB / 498.4 MB, free: 3.164 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002638/0.1348, allocations: 376 kB / 498.7 MB, free: 2.793 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.135, allocations: 149.9 kB / 498.9 MB, free: 2.645 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.1351, allocations: 118.2 kB / 499 MB, free: 2.523 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.1353, allocations: 374.8 kB / 499.4 MB, free: 2.148 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003785/0.1357, allocations: 183.4 kB / 499.6 MB, free: 1.969 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005173/0.1362, allocations: 401.9 kB / 499.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008546/0.1371, allocations: 0.5712 MB / 0.4888 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1371, allocations: 8 kB / 0.4888 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001125/0.1382, allocations: 0.6404 MB / 0.4894 GB, free: 160 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.1383, allocations: 8.688 kB / 0.4894 GB, free: 152 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.1383, allocations: 8 kB / 0.4894 GB, free: 144 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.614e-05/0.1383, allocations: 15.94 kB / 0.4895 GB, free: 128 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000516/0.1388, allocations: 143.8 kB / 0.4896 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/0.1389, allocations: 15.94 kB / 0.4896 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003866/0.1393, allocations: 75.2 kB / 0.4897 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.134e-05/0.1393, allocations: 35.92 kB / 0.4897 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004876/0.1398, allocations: 305.4 kB / 0.49 GB, free: 15.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004649/0.1403, allocations: 381.9 kB / 0.4904 GB, free: 15.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000779/0.1411, allocations: 0.5561 MB / 0.4909 GB, free: 14.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.875e-06/0.1411, allocations: 0 / 0.4909 GB, free: 14.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001017/0.1421, allocations: 0.6324 MB / 0.4915 GB, free: 13.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.1421, allocations: 8.719 kB / 0.4915 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.1422, allocations: 8 kB / 0.4915 GB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.1422, allocations: 16 kB / 0.4916 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004687/0.1427, allocations: 131.8 kB / 0.4917 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.51e-05/0.1427, allocations: 19.88 kB / 0.4917 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003523/0.143, allocations: 63.52 kB / 0.4918 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/0.1431, allocations: 27.98 kB / 0.4918 GB, free: 13.53 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001778/0.1433, allocations: 219 kB / 0.492 GB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.1434, allocations: 67.25 kB / 0.4921 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001461/0.1435, allocations: 74.16 kB / 0.4921 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.1435, allocations: 7.938 kB / 0.4921 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.1436, allocations: 7.938 kB / 0.4921 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.1436, allocations: 3.984 kB / 0.4922 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007583/0.1443, allocations: 0.5634 MB / 0.4927 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.1443, allocations: 0 / 0.4927 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004806/0.1448, allocations: 87.88 kB / 0.4928 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.1449, allocations: 4 kB / 0.4928 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-05/0.1449, allocations: 19.94 kB / 0.4928 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.1449, allocations: 3.938 kB / 0.4928 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1449, allocations: 240 / 0.4928 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.1461, allocations: 0.774 MB / 0.4936 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.1463, allocations: 172.3 kB / 0.4937 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.726e-05/0.1464, allocations: 4 kB / 0.4937 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003329/0.1467, allocations: 39.91 kB / 0.4938 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.904e-05/0.1468, allocations: 27.97 kB / 0.4938 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.1469, allocations: 11.98 kB / 0.4938 GB, free: 11.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004478/0.1473, allocations: 383.1 kB / 0.4942 GB, free: 11 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1473, allocations: 0 / 0.4942 GB, free: 11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008026/0.1481, allocations: 235.2 kB / 0.4944 GB, free: 10.77 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001448/0.1483, allocations: 110.5 kB / 0.4945 GB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.1496, allocations: 0.7322 MB / 0.4952 GB, free: 9.922 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1497, allocations: 0 / 0.4952 GB, free: 9.922 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003561/0.15, allocations: 196.1 kB / 0.4954 GB, free: 9.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008883/0.1509, allocations: 179.1 kB / 0.4956 GB, free: 9.559 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.1531, allocations: 1.396 MB / 0.4969 GB, free: 8.129 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/0.1536, allocations: 0.9065 MB / 0.4978 GB, free: 7.195 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003201/0.1539, allocations: 81.31 kB / 0.4979 GB, free: 7.117 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.154, allocations: 43.44 kB / 0.4979 GB, free: 7.074 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.154, allocations: 0 / 0.4979 GB, free: 7.074 MB / 382.1 MB Notification: Performance of Templates: time 0.01193/0.166, allocations: 6.358 MB / 0.5042 GB, free: 0.7695 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches