Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00152/0.001521, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001738/0.001738, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.354/2.354, allocations: 227.4 MB / 246.9 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4079/0.4079, allocations: 46.09 MB / 344.3 MB, free: 11.83 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 79.58 kB / 417.5 MB, free: 20.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1415, allocations: 62.45 MB / 479.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01563/0.1572, allocations: 11.61 MB / 491.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008793/0.166, allocations: 3.914 MB / 495.5 MB, free: 6.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002616/0.1687, allocations: 67.69 kB / 495.5 MB, free: 6.094 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003318/0.1721, allocations: 0.7573 MB / 496.3 MB, free: 5.332 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005003/0.1771, allocations: 0.8549 MB / 497.1 MB, free: 4.473 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002056/0.1792, allocations: 463.5 kB / 497.6 MB, free: 4.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005876/0.1851, allocations: 3.644 MB / 0.4895 GB, free: 372 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005301/0.1904, allocations: 2.577 MB / 0.492 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0037/0.1941, allocations: 1.362 MB / 0.4933 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005363/0.1995, allocations: 1.926 MB / 0.4952 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001688/0.2013, allocations: 263.9 kB / 0.4955 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002711/0.204, allocations: 391.8 kB / 0.4958 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002818/0.2068, allocations: 1.055 MB / 0.4969 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00566/0.2125, allocations: 1.71 MB / 0.4985 GB, free: 7.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008546/0.2211, allocations: 4.614 MB / 0.503 GB, free: 2.383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.2212, allocations: 0 / 0.503 GB, free: 2.383 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.2212, allocations: 4 kB / 0.5031 GB, free: 2.379 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002414/0.2214, allocations: 0 / 0.5031 GB, free: 2.379 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.2781/0.4996, allocations: 3.831 MB / 0.5068 GB, free: 38.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.4997, allocations: 10.64 kB / 0.5068 GB, free: 38.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001433/0.5011, allocations: 402.2 kB / 0.5072 GB, free: 38.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006108/0.5072, allocations: 2.028 MB / 0.5092 GB, free: 37.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003284/0.5076, allocations: 220.1 kB / 0.5094 GB, free: 36.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009311/0.5086, allocations: 281.4 kB / 0.5096 GB, free: 36.83 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01336/0.5219, allocations: 3.736 MB / 0.5133 GB, free: 35.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001207/0.5221, allocations: 10.98 kB / 0.5133 GB, free: 35.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004223/0.5226, allocations: 120.3 kB / 0.5134 GB, free: 35.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002632/0.5228, allocations: 138.2 kB / 0.5135 GB, free: 35.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01061/0.5335, allocations: 3.174 MB / 0.5166 GB, free: 34.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03633/0.5698, allocations: 11.57 MB / 0.528 GB, free: 27.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00686/0.5767, allocations: 2.17 MB / 0.5301 GB, free: 25.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003736/0.5805, allocations: 1.227 MB / 0.5313 GB, free: 25.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004862/0.581, allocations: 210.2 kB / 0.5315 GB, free: 24.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.365e-05/0.5811, allocations: 59.62 kB / 0.5315 GB, free: 24.78 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 6.211e-06/0.5812, allocations: 0 / 0.5315 GB, free: 24.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.02988/0.611, allocations: 7.863 MB / 0.5392 GB, free: 18.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.6111, allocations: 68.72 kB / 0.5393 GB, free: 18.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00533/0.6165, allocations: 1.941 MB / 0.5412 GB, free: 16.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000334/0.6169, allocations: 53.7 kB / 0.5412 GB, free: 16.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001265/0.6182, allocations: 1.374 MB / 0.5426 GB, free: 14.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007585/0.6189, allocations: 0.5229 MB / 0.5431 GB, free: 14.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001086/0.6201, allocations: 315.3 kB / 0.5434 GB, free: 13.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.993e-05/0.6201, allocations: 305.1 kB / 0.5437 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002527/0.6227, allocations: 0.8862 MB / 0.5445 GB, free: 12.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002735/0.6254, allocations: 1.352 MB / 0.5458 GB, free: 11.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005381/0.6308, allocations: 2.382 MB / 0.5482 GB, free: 8.676 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.982e-05/0.6309, allocations: 6.562 kB / 0.5482 GB, free: 8.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.008711/0.6396, allocations: 2.936 MB / 0.551 GB, free: 5.695 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.102e-05/0.6397, allocations: 8.844 kB / 0.5511 GB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-05/0.6398, allocations: 16 kB / 0.5511 GB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001567/0.6413, allocations: 391.5 kB / 0.5514 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002925/0.6443, allocations: 443.3 kB / 0.5519 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009201/0.6535, allocations: 6.208 MB / 0.5579 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003322/0.6569, allocations: 127.8 kB / 0.558 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005063/0.6574, allocations: 71.98 kB / 0.5581 GB, free: 14.05 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003176/0.6606, allocations: 0.8993 MB / 0.559 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/0.6617, allocations: 209.4 kB / 0.5592 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01018/0.6719, allocations: 2.911 MB / 0.562 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-05/0.672, allocations: 16 kB / 0.5621 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-05/0.6721, allocations: 12 kB / 0.5621 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.994e-05/0.6721, allocations: 7.969 kB / 0.5621 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02179/0.6939, allocations: 6.155 MB / 0.5681 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.112e-05/0.694, allocations: 4 kB / 0.5681 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002266/0.6963, allocations: 239.6 kB / 0.5683 GB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004344/0.7006, allocations: 0.7982 MB / 0.5691 GB, free: 2.668 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002911/0.701, allocations: 35.98 kB / 0.5691 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01805/0.719, allocations: 9.842 MB / 0.5787 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.165e-05/0.7191, allocations: 4 kB / 0.5787 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01047/0.7296, allocations: 4.171 MB / 0.5828 GB, free: 4.137 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001376/0.731, allocations: 486.4 kB / 0.5833 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007062/0.7317, allocations: 39.98 kB / 0.5833 GB, free: 3.602 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001607/0.7333, allocations: 91.89 kB / 0.5834 GB, free: 3.512 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000376/0.7337, allocations: 125 kB / 0.5835 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/0.7339, allocations: 47.98 kB / 0.5836 GB, free: 3.344 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002817/0.7367, allocations: 1.344 MB / 0.5849 GB, free: 1.977 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7367, allocations: 0 / 0.5849 GB, free: 1.977 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002566/0.7393, allocations: 0.574 MB / 0.5854 GB, free: 1.406 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.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 (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005018/0.7398, allocations: 212.3 kB / 0.5856 GB, free: 1.199 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004506/0.7443, allocations: 2.627 MB / 0.5882 GB, free: 14.52 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.7443, allocations: 4.062 kB / 0.5882 GB, free: 14.52 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00271/0.747, allocations: 1.633 MB / 0.5898 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003428/0.7505, allocations: 0.5156 MB / 0.5903 GB, free: 12.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01251/0.763, allocations: 7.123 MB / 0.5973 GB, free: 5.145 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002731/0.7658, allocations: 2.194 MB / 0.5994 GB, free: 2.922 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008784/0.7667, allocations: 163.4 kB / 0.5996 GB, free: 2.762 MB / 430.1 MB Notification: Performance of SimCode: time 1.362e-06/0.7667, allocations: 0 / 0.5996 GB, free: 2.762 MB / 430.1 MB Notification: Performance of Templates: time 0.1136/0.8803, allocations: 85.23 MB / 0.6828 GB, free: 13.54 MB / 0.5137 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches