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.0009131/0.0009133, allocations: 101.9 kB / 18.01 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 206.9 kB / 18.94 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.7 MB / 247.5 MB, free: 11.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1892/0.1892, allocations: 46.19 MB / 345.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002502/0.0002502, allocations: 8 kB / 420.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09683, allocations: 63.57 MB / 483.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004213/0.1011, allocations: 3.629 MB / 487.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.1033, allocations: 1.231 MB / 488.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004008/0.1037, allocations: 23.88 kB / 488.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002494/0.104, allocations: 79.23 kB / 488.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005069/0.1045, allocations: 139 kB / 488.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007178/0.1052, allocations: 359 kB / 489.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008065/0.106, allocations: 0.7838 MB / 490 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004149/0.1064, allocations: 272.3 kB / 490.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004007/0.1069, allocations: 262.5 kB / 490.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000301/0.1072, allocations: 258.3 kB / 490.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.531e-05/0.1072, allocations: 24 kB / 490.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.912e-05/0.1073, allocations: 31.98 kB / 490.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.29e-05/0.1074, allocations: 103.4 kB / 490.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000237/0.1077, allocations: 319.6 kB / 491.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000459/0.1081, allocations: 0.5416 MB / 491.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1082, allocations: 0 / 491.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1082, allocations: 0 / 491.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.1082, allocations: 0 / 491.7 MB, free: 12.1 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.00152/0.1097, allocations: 0.9466 MB / 492.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.1097, allocations: 9.953 kB / 492.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000235/0.11, allocations: 107.8 kB / 492.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006505/0.1107, allocations: 0.507 MB / 493.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.833e-05/0.1107, allocations: 45.69 kB / 493.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.209e-05/0.1108, allocations: 75.95 kB / 493.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.1118, allocations: 0.6163 MB / 494 MB, free: 9.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.1119, allocations: 3.938 kB / 494 MB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.781e-05/0.1119, allocations: 24 kB / 494.1 MB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.1119, allocations: 12 kB / 494.1 MB, free: 9.605 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007963/0.1127, allocations: 402.2 kB / 494.5 MB, free: 9.211 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003795/0.1165, allocations: 3.04 MB / 497.5 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009988/0.1176, allocations: 479.7 kB / 498 MB, free: 5.543 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003633/0.1179, allocations: 177.6 kB / 498.2 MB, free: 5.363 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.369e-05/0.118, allocations: 11.98 kB / 498.2 MB, free: 5.352 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.118, allocations: 34.56 kB / 498.2 MB, free: 5.309 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 1.793e-06/0.118, allocations: 0 / 498.2 MB, free: 5.309 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001273/0.1193, allocations: 0.5877 MB / 498.8 MB, free: 4.715 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.804e-05/0.1194, allocations: 132.5 kB / 498.9 MB, free: 4.555 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005968/0.12, allocations: 0.5509 MB / 499.5 MB, free: 3.992 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.12, allocations: 37.7 kB / 499.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00026/0.1203, allocations: 372 kB / 499.9 MB, free: 3.578 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.1204, allocations: 149.9 kB / 0.4883 GB, free: 3.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.802e-05/0.1205, allocations: 61.69 kB / 0.4884 GB, free: 3.363 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1207, allocations: 378.8 kB / 0.4887 GB, free: 2.984 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004226/0.1211, allocations: 185.2 kB / 0.4889 GB, free: 2.805 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005701/0.1217, allocations: 409.9 kB / 0.4893 GB, free: 2.309 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.1227, allocations: 0.5984 MB / 0.4899 GB, free: 1.617 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.1227, allocations: 4 kB / 0.4899 GB, free: 1.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001238/0.124, allocations: 0.6642 MB / 0.4905 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001836/0.1242, allocations: 294.2 kB / 0.4908 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.1242, allocations: 11.94 kB / 0.4908 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.1242, allocations: 12 kB / 0.4908 GB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000545/0.1248, allocations: 147.7 kB / 0.491 GB, free: 400 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.624e-05/0.1248, allocations: 11.94 kB / 0.491 GB, free: 388 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004156/0.1252, allocations: 83.36 kB / 0.4911 GB, free: 304 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.976e-05/0.1253, allocations: 31.98 kB / 0.4911 GB, free: 272 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.135e-06/0.1253, allocations: 4 kB / 0.4911 GB, free: 268 kB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001046/0.1263, allocations: 0.5426 MB / 0.4916 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.1264, allocations: 7.984 kB / 0.4916 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.1264, allocations: 12 kB / 0.4916 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004932/0.1269, allocations: 139.8 kB / 0.4918 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/0.1269, allocations: 11.94 kB / 0.4918 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003793/0.1273, allocations: 67.77 kB / 0.4919 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/0.1273, allocations: 31.94 kB / 0.4919 GB, free: 15.45 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.0002771/0.1276, allocations: 272.9 kB / 0.4921 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.1277, allocations: 63.25 kB / 0.4922 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001535/0.1279, allocations: 74.16 kB / 0.4923 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.1279, allocations: 8 kB / 0.4923 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.1279, allocations: 3.938 kB / 0.4923 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1279, allocations: 0 / 0.4923 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007691/0.1287, allocations: 0.5751 MB / 0.4928 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1287, allocations: 0 / 0.4928 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004987/0.1292, allocations: 87.89 kB / 0.4929 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1293, allocations: 4 kB / 0.4929 GB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.579e-05/0.1293, allocations: 11.98 kB / 0.4929 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1293, allocations: 0 / 0.4929 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.1293, allocations: 7.938 kB / 0.493 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.1307, allocations: 0.8042 MB / 0.4937 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001926/0.1309, allocations: 172.3 kB / 0.4939 GB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.194e-05/0.1309, allocations: 15.94 kB / 0.4939 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003705/0.1313, allocations: 31.98 kB / 0.4939 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.925e-05/0.1314, allocations: 31.89 kB / 0.494 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.1314, allocations: 15.98 kB / 0.494 GB, free: 13.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004163/0.1319, allocations: 375.1 kB / 0.4944 GB, free: 12.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.162e-06/0.1319, allocations: 0 / 0.4944 GB, free: 12.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007889/0.1327, allocations: 251 kB / 0.4946 GB, free: 12.58 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.000126/0.1328, allocations: 103.5 kB / 0.4947 GB, free: 12.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.1343, allocations: 0.7565 MB / 0.4954 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.1344, allocations: 4 kB / 0.4954 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003943/0.1348, allocations: 197.4 kB / 0.4956 GB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.1358, allocations: 168.1 kB / 0.4958 GB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002475/0.1383, allocations: 1.813 MB / 0.4976 GB, free: 9.516 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004759/0.1388, allocations: 0.9146 MB / 0.4984 GB, free: 8.574 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001586/0.1389, allocations: 43.44 kB / 0.4985 GB, free: 8.531 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.139, allocations: 0 / 0.4985 GB, free: 8.531 MB / 382.1 MB Notification: Performance of Templates: time 0.01115/0.1501, allocations: 7.604 MB / 0.5059 GB, free: 0.9492 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 -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