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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.00125/0.00125, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001094/0.001094, allocations: 106.3 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4487/0.4487, allocations: 44.84 MB / 392.7 MB, free: 34.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.00106, allocations: 63.84 kB / 465.5 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4232/0.4242, allocations: 62.01 MB / 0.5151 GB, free: 37.75 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01265/0.4369, allocations: 11.61 MB / 0.5265 GB, free: 29.45 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.009923/0.4469, allocations: 3.9 MB / 0.5303 GB, free: 26.59 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003151/0.4501, allocations: 73.34 kB / 0.5304 GB, free: 26.57 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00287/0.453, allocations: 0.7584 MB / 0.5311 GB, free: 26.18 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003965/0.457, allocations: 0.8529 MB / 0.5319 GB, free: 25.65 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001808/0.4589, allocations: 461.9 kB / 0.5324 GB, free: 25.34 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004607/0.4635, allocations: 3.676 MB / 0.536 GB, free: 23.72 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003737/0.4672, allocations: 2.582 MB / 0.5385 GB, free: 22.57 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003592/0.4709, allocations: 1.375 MB / 0.5398 GB, free: 21.95 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00455/0.4754, allocations: 1.909 MB / 0.5417 GB, free: 21.12 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001069/0.4765, allocations: 265 kB / 0.5419 GB, free: 21.12 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00171/0.4783, allocations: 384.4 kB / 0.5423 GB, free: 21.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.4797, allocations: 1.063 MB / 0.5434 GB, free: 20.59 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003384/0.4831, allocations: 1.713 MB / 0.545 GB, free: 19.5 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007502/0.4907, allocations: 5.374 MB / 0.5503 GB, free: 17.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.057e-05/0.4907, allocations: 0 / 0.5503 GB, free: 17.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4907, allocations: 0 / 0.5503 GB, free: 17.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000211/0.4909, allocations: 1.375 kB / 0.5503 GB, free: 17.04 MB / 378.7 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.01384/0.5048, allocations: 3.839 MB / 0.554 GB, free: 14.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.012e-05/0.5049, allocations: 13.22 kB / 0.554 GB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001763/0.5066, allocations: 395.7 kB / 0.5544 GB, free: 14.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004575/0.5112, allocations: 2.033 MB / 0.5564 GB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002245/0.5115, allocations: 225.2 kB / 0.5566 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005184/0.512, allocations: 287.7 kB / 0.5569 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008083/0.5201, allocations: 3.728 MB / 0.5605 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.47e-05/0.5202, allocations: 11.3 kB / 0.5605 GB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002658/0.5205, allocations: 115.6 kB / 0.5606 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001904/0.5207, allocations: 140.4 kB / 0.5608 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005419/0.5261, allocations: 3.171 MB / 0.5639 GB, free: 7.363 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02214/0.5483, allocations: 11.58 MB / 0.5752 GB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003907/0.5522, allocations: 2.169 MB / 0.5773 GB, free: 9.207 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002101/0.5544, allocations: 1.226 MB / 0.5785 GB, free: 7.977 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003377/0.5547, allocations: 211.5 kB / 0.5787 GB, free: 7.734 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.5548, allocations: 47.81 kB / 0.5788 GB, free: 7.676 MB / 394.7 MB Notification: Performance of pre-optimization done (n=139): time 3.587e-06/0.5548, allocations: 0 / 0.5788 GB, free: 7.676 MB / 394.7 MB Notification: Performance of matching and sorting (n=154): time 0.01973/0.5745, allocations: 7.867 MB / 0.5864 GB, free: 15.74 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/0.5746, allocations: 64.72 kB / 0.5865 GB, free: 15.67 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003249/0.5779, allocations: 1.949 MB / 0.5884 GB, free: 13.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002531/0.5781, allocations: 53.7 kB / 0.5884 GB, free: 13.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009804/0.5791, allocations: 1.362 MB / 0.5898 GB, free: 12.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004965/0.5796, allocations: 0.5276 MB / 0.5903 GB, free: 11.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005269/0.5802, allocations: 319.3 kB / 0.5906 GB, free: 11.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.5803, allocations: 309.1 kB / 0.5909 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/0.5817, allocations: 0.8862 MB / 0.5918 GB, free: 10.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001853/0.5836, allocations: 1.348 MB / 0.5931 GB, free: 8.664 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003469/0.5871, allocations: 2.381 MB / 0.5954 GB, free: 6.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.187e-05/0.5871, allocations: 4 kB / 0.5954 GB, free: 6.086 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005943/0.5931, allocations: 2.936 MB / 0.5983 GB, free: 3.105 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.5931, allocations: 8 kB / 0.5983 GB, free: 3.098 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.292e-05/0.5932, allocations: 16 kB / 0.5983 GB, free: 3.082 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00092/0.5941, allocations: 399.3 kB / 0.5987 GB, free: 2.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001667/0.5958, allocations: 439.3 kB / 0.5991 GB, free: 2.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005778/0.6016, allocations: 6.202 MB / 0.6052 GB, free: 11.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/0.6037, allocations: 119.8 kB / 0.6053 GB, free: 11.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001957/0.604, allocations: 80.05 kB / 0.6053 GB, free: 11.45 MB / 426.7 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.00179/0.6058, allocations: 0.9003 MB / 0.6062 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005357/0.6063, allocations: 209.4 kB / 0.6064 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005148/0.6115, allocations: 2.911 MB / 0.6093 GB, free: 7.402 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.6115, allocations: 16 kB / 0.6093 GB, free: 7.387 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.6115, allocations: 8 kB / 0.6093 GB, free: 7.379 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/0.6115, allocations: 7.969 kB / 0.6093 GB, free: 7.371 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/0.6227, allocations: 6.154 MB / 0.6153 GB, free: 1.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.204e-05/0.6228, allocations: 12.39 kB / 0.6153 GB, free: 1.078 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/0.6238, allocations: 247.6 kB / 0.6156 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002085/0.6259, allocations: 0.8032 MB / 0.6163 GB, free: 24 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001624/0.6261, allocations: 40.03 kB / 0.6164 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01259/0.6387, allocations: 9.824 MB / 0.626 GB, free: 5.754 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.6387, allocations: 7.938 kB / 0.626 GB, free: 5.746 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05694/0.6957, allocations: 31.6 MB / 0.6568 GB, free: 5.465 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001351/0.6971, allocations: 486.4 kB / 0.6573 GB, free: 4.969 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002844/0.6974, allocations: 35.98 kB / 0.6573 GB, free: 4.934 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/0.6986, allocations: 91.89 kB / 0.6574 GB, free: 4.844 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004007/0.699, allocations: 129.2 kB / 0.6575 GB, free: 4.719 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/0.6991, allocations: 47.98 kB / 0.6576 GB, free: 4.672 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002547/0.7016, allocations: 1.337 MB / 0.6589 GB, free: 3.312 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7017, allocations: 0 / 0.6589 GB, free: 3.312 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003709/0.7054, allocations: 0.8203 MB / 0.6597 GB, free: 2.492 MB / 474.7 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.0005341/0.7059, allocations: 196.2 kB / 0.6599 GB, free: 2.293 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004197/0.7101, allocations: 2.632 MB / 0.6624 GB, free: 15.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.7102, allocations: 4 kB / 0.6625 GB, free: 15.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002458/0.7126, allocations: 1.642 MB / 0.6641 GB, free: 13.92 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002964/0.7156, allocations: 0.5002 MB / 0.6645 GB, free: 13.42 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/0.7292, allocations: 8.8 MB / 0.6731 GB, free: 4.488 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002792/0.732, allocations: 2.277 MB / 0.6754 GB, free: 2.184 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002209/0.7343, allocations: 485.7 kB / 0.6758 GB, free: 1.707 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005608/0.7348, allocations: 167.4 kB / 0.676 GB, free: 1.543 MB / 490.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7348, allocations: 4 kB / 0.676 GB, free: 1.539 MB / 490.7 MB Notification: Performance of Templates: time 0.3089/1.044, allocations: 40.55 MB / 0.7156 GB, free: 116.1 MB / 490.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches