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.001315/0.001315, allocations: 121.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001132/0.001132, allocations: 212.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2163/0.2163, allocations: 46.09 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 76.11 kB / 482 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3498, allocations: 62.43 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01382/0.3637, allocations: 11.73 MB / 0.5431 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009047/0.3728, allocations: 3.968 MB / 0.547 GB, free: 1.016 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002862/0.3757, allocations: 72.72 kB / 0.547 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003222/0.379, allocations: 0.9192 MB / 0.5479 GB, free: 296 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004746/0.3838, allocations: 0.9974 MB / 0.5489 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001934/0.3857, allocations: 0.5128 MB / 0.5494 GB, free: 15 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005625/0.3914, allocations: 3.355 MB / 0.5527 GB, free: 12.1 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00526/0.3967, allocations: 3.029 MB / 0.5556 GB, free: 9.004 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003207/0.3999, allocations: 1.577 MB / 0.5572 GB, free: 7.422 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003562/0.4035, allocations: 2.008 MB / 0.5591 GB, free: 5.406 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001418/0.405, allocations: 432 kB / 0.5596 GB, free: 4.984 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00215/0.4071, allocations: 0.5272 MB / 0.5601 GB, free: 4.457 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002013/0.4092, allocations: 1.231 MB / 0.5613 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003908/0.4131, allocations: 1.905 MB / 0.5631 GB, free: 1.309 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00795/0.421, allocations: 5.582 MB / 0.5686 GB, free: 11.71 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4211, allocations: 0 / 0.5686 GB, free: 11.71 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4211, allocations: 0 / 0.5686 GB, free: 11.71 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002265/0.4213, allocations: 0 / 0.5686 GB, free: 11.71 MB / 430.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.01091/0.4323, allocations: 3.848 MB / 0.5723 GB, free: 7.793 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.4323, allocations: 8.031 kB / 0.5724 GB, free: 7.785 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001863/0.4342, allocations: 400.5 kB / 0.5727 GB, free: 7.391 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004978/0.4392, allocations: 2.09 MB / 0.5748 GB, free: 5.246 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002448/0.4395, allocations: 226 kB / 0.575 GB, free: 5.023 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009611/0.4404, allocations: 283.8 kB / 0.5753 GB, free: 4.746 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009265/0.4497, allocations: 3.735 MB / 0.5789 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001277/0.4499, allocations: 7.906 kB / 0.5789 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006418/0.4505, allocations: 116 kB / 0.579 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001637/0.4507, allocations: 141.5 kB / 0.5792 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007282/0.458, allocations: 3.172 MB / 0.5823 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02382/0.4819, allocations: 11.45 MB / 0.5934 GB, free: 1.746 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004149/0.4861, allocations: 2.164 MB / 0.5956 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002186/0.4883, allocations: 1.224 MB / 0.5968 GB, free: 14.24 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003685/0.4887, allocations: 207.5 kB / 0.5969 GB, free: 14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.4888, allocations: 51.81 kB / 0.597 GB, free: 13.94 MB / 462.1 MB Notification: Performance of pre-optimization done (n=139): time 4.058e-06/0.4888, allocations: 0 / 0.597 GB, free: 13.94 MB / 462.1 MB Notification: Performance of matching and sorting (n=154): time 0.01842/0.5072, allocations: 7.872 MB / 0.6047 GB, free: 6.008 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.304e-05/0.5073, allocations: 68.72 kB / 0.6048 GB, free: 5.93 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003868/0.5112, allocations: 1.945 MB / 0.6067 GB, free: 3.941 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000275/0.5115, allocations: 53.7 kB / 0.6067 GB, free: 3.883 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001129/0.5126, allocations: 1.366 MB / 0.608 GB, free: 2.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006434/0.5133, allocations: 0.5237 MB / 0.6085 GB, free: 1.969 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007786/0.5141, allocations: 315.3 kB / 0.6088 GB, free: 1.652 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.5142, allocations: 305.1 kB / 0.6091 GB, free: 1.352 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001589/0.5158, allocations: 0.8901 MB / 0.61 GB, free: 472 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001895/0.5177, allocations: 1.348 MB / 0.6113 GB, free: 14.92 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003588/0.5213, allocations: 2.385 MB / 0.6137 GB, free: 12.34 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/0.5213, allocations: 4 kB / 0.6137 GB, free: 12.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005499/0.5269, allocations: 2.944 MB / 0.6165 GB, free: 9.355 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.5269, allocations: 12 kB / 0.6165 GB, free: 9.344 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.663e-05/0.527, allocations: 12 kB / 0.6166 GB, free: 9.332 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009974/0.528, allocations: 391.1 kB / 0.6169 GB, free: 8.938 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001814/0.5298, allocations: 447.3 kB / 0.6174 GB, free: 8.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00684/0.5366, allocations: 6.765 MB / 0.624 GB, free: 1.32 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002283/0.539, allocations: 123.7 kB / 0.6241 GB, free: 1.199 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004495/0.5395, allocations: 75.98 kB / 0.6242 GB, free: 1.125 MB / 478.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.002698/0.5422, allocations: 0.9043 MB / 0.625 GB, free: 216 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009915/0.5432, allocations: 209.4 kB / 0.6252 GB, free: 4 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00677/0.55, allocations: 2.907 MB / 0.6281 GB, free: 13.07 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.944e-05/0.5501, allocations: 20 kB / 0.6281 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-05/0.5501, allocations: 8 kB / 0.6281 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.351e-05/0.5501, allocations: 11.91 kB / 0.6281 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01322/0.5634, allocations: 6.13 MB / 0.6341 GB, free: 6.773 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.52e-05/0.5634, allocations: 4 kB / 0.6341 GB, free: 6.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.5645, allocations: 239.7 kB / 0.6343 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002179/0.5667, allocations: 0.8078 MB / 0.6351 GB, free: 5.719 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001707/0.5669, allocations: 35.98 kB / 0.6352 GB, free: 5.684 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01266/0.5796, allocations: 10.76 MB / 0.6457 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/0.5796, allocations: 7.938 kB / 0.6457 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007476/0.5871, allocations: 4.176 MB / 0.6497 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/0.5884, allocations: 486.4 kB / 0.6502 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006152/0.5891, allocations: 43.98 kB / 0.6503 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/0.5905, allocations: 91.89 kB / 0.6503 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003339/0.5909, allocations: 121 kB / 0.6505 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.591, allocations: 47.98 kB / 0.6505 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002727/0.5938, allocations: 1.341 MB / 0.6518 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.8e-07/0.5938, allocations: 0 / 0.6518 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002692/0.5965, allocations: 0.5703 MB / 0.6524 GB, free: 3.508 MB / 0.4981 GB 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.0005293/0.597, allocations: 202.9 kB / 0.6526 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00446/0.6015, allocations: 2.647 MB / 0.6551 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/0.6015, allocations: 4.375 kB / 0.6551 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00264/0.6042, allocations: 1.638 MB / 0.6567 GB, free: 14.91 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003312/0.6075, allocations: 0.5434 MB / 0.6573 GB, free: 14.38 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01175/0.6193, allocations: 5.802 MB / 0.6629 GB, free: 8.508 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00274/0.6221, allocations: 2.186 MB / 0.6651 GB, free: 6.289 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008587/0.6229, allocations: 167.4 kB / 0.6652 GB, free: 6.125 MB / 0.5138 GB Notification: Performance of SimCode: time 1.032e-06/0.623, allocations: 0 / 0.6652 GB, free: 6.125 MB / 0.5138 GB Notification: Performance of Templates: time 0.3643/0.9872, allocations: 85.55 MB / 0.7488 GB, free: 149 MB / 0.5606 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