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.001592/0.001592, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002003/0.002003, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2641/0.2641, allocations: 46.11 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002621/0.002621, allocations: 68.39 kB / 417.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1359, allocations: 62.45 MB / 480 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01478/0.1507, allocations: 11.71 MB / 491.7 MB, free: 9.516 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009083/0.1599, allocations: 3.961 MB / 495.7 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003157/0.163, allocations: 71.69 kB / 495.8 MB, free: 5.469 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003179/0.1663, allocations: 0.8653 MB / 496.6 MB, free: 4.598 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004472/0.1708, allocations: 0.9551 MB / 497.6 MB, free: 3.637 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0026/0.1734, allocations: 0.5227 MB / 498.1 MB, free: 3.113 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006681/0.1801, allocations: 3.317 MB / 0.4897 GB, free: 15.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006274/0.1864, allocations: 3.033 MB / 0.4926 GB, free: 12.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0033/0.1897, allocations: 1.557 MB / 0.4941 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00436/0.1941, allocations: 2.008 MB / 0.4961 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001705/0.1959, allocations: 432 kB / 0.4965 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002277/0.1982, allocations: 0.5349 MB / 0.497 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002189/0.2004, allocations: 1.235 MB / 0.4982 GB, free: 6.914 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004473/0.2049, allocations: 1.898 MB / 0.5001 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2678/0.4727, allocations: 5.505 MB / 0.5055 GB, free: 21.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.194e-05/0.4727, allocations: 0.9688 kB / 0.5055 GB, free: 21.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.4727, allocations: 4.531 kB / 0.5055 GB, free: 21.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002195/0.473, allocations: 0 / 0.5055 GB, free: 21.65 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.01203/0.485, allocations: 3.846 MB / 0.5092 GB, free: 20.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.775e-05/0.4851, allocations: 11.75 kB / 0.5092 GB, free: 20.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001758/0.4869, allocations: 397.6 kB / 0.5096 GB, free: 20.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004322/0.4912, allocations: 2.02 MB / 0.5116 GB, free: 19.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000281/0.4915, allocations: 225.2 kB / 0.5118 GB, free: 19.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005893/0.4921, allocations: 291.7 kB / 0.5121 GB, free: 19.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007356/0.4995, allocations: 3.731 MB / 0.5157 GB, free: 19.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.138e-05/0.4996, allocations: 8.828 kB / 0.5157 GB, free: 19.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002752/0.4999, allocations: 115.9 kB / 0.5159 GB, free: 19.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001761/0.5, allocations: 139.1 kB / 0.516 GB, free: 19.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006806/0.5069, allocations: 3.178 MB / 0.5191 GB, free: 18.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02055/0.5274, allocations: 11.56 MB / 0.5304 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003842/0.5314, allocations: 2.173 MB / 0.5325 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001738/0.5331, allocations: 1.235 MB / 0.5337 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002786/0.5334, allocations: 214.2 kB / 0.5339 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.5335, allocations: 52.84 kB / 0.534 GB, free: 10.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.997e-06/0.5335, allocations: 0 / 0.534 GB, free: 10.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01756/0.5511, allocations: 7.861 MB / 0.5416 GB, free: 4.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.5512, allocations: 68.72 kB / 0.5417 GB, free: 4.906 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003937/0.5551, allocations: 1.953 MB / 0.5436 GB, free: 2.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001847/0.5553, allocations: 49.7 kB / 0.5437 GB, free: 2.855 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008731/0.5562, allocations: 1.367 MB / 0.545 GB, free: 1.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004574/0.5567, allocations: 0.5289 MB / 0.5455 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005355/0.5572, allocations: 319.3 kB / 0.5458 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.19e-05/0.5573, allocations: 301.1 kB / 0.5461 GB, free: 352 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001604/0.5589, allocations: 0.8925 MB / 0.547 GB, free: 15.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001962/0.5609, allocations: 1.342 MB / 0.5483 GB, free: 13.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003607/0.5645, allocations: 2.388 MB / 0.5506 GB, free: 11.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.258e-05/0.5645, allocations: 8 kB / 0.5506 GB, free: 11.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005703/0.5702, allocations: 2.931 MB / 0.5535 GB, free: 8.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.537e-05/0.5703, allocations: 14.34 kB / 0.5535 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.601e-05/0.5703, allocations: 12 kB / 0.5535 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009919/0.5713, allocations: 393.3 kB / 0.5539 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001853/0.5732, allocations: 453.1 kB / 0.5543 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006999/0.5802, allocations: 6.757 MB / 0.5609 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002183/0.5824, allocations: 123.8 kB / 0.561 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003007/0.5828, allocations: 72.05 kB / 0.5611 GB, free: 376 kB / 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.001926/0.5847, allocations: 0.9114 MB / 0.562 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006875/0.5854, allocations: 217.3 kB / 0.5622 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005997/0.5914, allocations: 2.908 MB / 0.565 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/0.5914, allocations: 16 kB / 0.5651 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-05/0.5915, allocations: 8 kB / 0.5651 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-05/0.5915, allocations: 7.969 kB / 0.5651 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01265/0.6041, allocations: 6.15 MB / 0.5711 GB, free: 6.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/0.6042, allocations: 4.469 kB / 0.5711 GB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/0.6054, allocations: 245.9 kB / 0.5713 GB, free: 5.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002345/0.6077, allocations: 0.8083 MB / 0.5721 GB, free: 5.094 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001387/0.6079, allocations: 35.98 kB / 0.5721 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01462/0.6225, allocations: 10.76 MB / 0.5827 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/0.6226, allocations: 4 kB / 0.5827 GB, free: 9.938 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007734/0.6303, allocations: 4.182 MB / 0.5867 GB, free: 5.707 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001593/0.6319, allocations: 482.4 kB / 0.5872 GB, free: 5.215 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007866/0.6327, allocations: 32.19 kB / 0.5872 GB, free: 5.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00159/0.6343, allocations: 95.88 kB / 0.5873 GB, free: 5.09 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003945/0.6348, allocations: 132.8 kB / 0.5875 GB, free: 4.965 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/0.6349, allocations: 47.83 kB / 0.5875 GB, free: 4.922 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00314/0.638, allocations: 1.341 MB / 0.5888 GB, free: 3.559 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6381, allocations: 0 / 0.5888 GB, free: 3.559 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003116/0.6412, allocations: 0.582 MB / 0.5894 GB, free: 2.977 MB / 430.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.0005202/0.6417, allocations: 197.2 kB / 0.5896 GB, free: 2.789 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007169/0.6489, allocations: 3.299 MB / 0.5928 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/0.6489, allocations: 0 / 0.5928 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002844/0.6518, allocations: 1.644 MB / 0.5944 GB, free: 13.85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004246/0.6561, allocations: 0.5437 MB / 0.5949 GB, free: 13.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01278/0.6689, allocations: 5.802 MB / 0.6006 GB, free: 7.465 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003459/0.6724, allocations: 2.221 MB / 0.6028 GB, free: 5.215 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002044/0.6744, allocations: 469.8 kB / 0.6032 GB, free: 4.754 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007322/0.6752, allocations: 155.4 kB / 0.6034 GB, free: 4.602 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/0.6752, allocations: 4 kB / 0.6034 GB, free: 4.598 MB / 446.1 MB Notification: Performance of Templates: time 0.06394/0.7392, allocations: 32.9 MB / 0.6355 GB, free: 4.035 MB / 478.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches