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.001316/0.001316, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246.9 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.2542/0.2542, allocations: 46.1 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002422/0.002422, allocations: 71.89 kB / 481.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4379/0.4404, allocations: 62.43 MB / 0.531 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01529/0.4557, allocations: 11.72 MB / 0.5424 GB, free: 4.379 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01099/0.4667, allocations: 3.968 MB / 0.5463 GB, free: 1.066 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004067/0.4708, allocations: 80.78 kB / 0.5464 GB, free: 1.039 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00394/0.4749, allocations: 0.8593 MB / 0.5472 GB, free: 388 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005975/0.4809, allocations: 0.9503 MB / 0.5481 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002431/0.4833, allocations: 0.5198 MB / 0.5487 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00664/0.49, allocations: 3.341 MB / 0.5519 GB, free: 12.26 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006165/0.4962, allocations: 3.037 MB / 0.5549 GB, free: 9.16 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004126/0.5004, allocations: 1.565 MB / 0.5564 GB, free: 7.59 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004817/0.5052, allocations: 2.016 MB / 0.5584 GB, free: 5.566 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001881/0.5071, allocations: 428 kB / 0.5588 GB, free: 5.148 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003064/0.5102, allocations: 0.535 MB / 0.5593 GB, free: 4.613 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002347/0.5126, allocations: 1.227 MB / 0.5605 GB, free: 3.383 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004494/0.5171, allocations: 1.901 MB / 0.5624 GB, free: 1.473 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.5272, allocations: 5.606 MB / 0.5678 GB, free: 11.85 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.15e-05/0.5272, allocations: 0 / 0.5678 GB, free: 11.85 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5272, allocations: 3.938 kB / 0.5678 GB, free: 11.84 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003013/0.5276, allocations: 0 / 0.5678 GB, free: 11.84 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.01387/0.5414, allocations: 3.942 MB / 0.5717 GB, free: 7.828 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.5415, allocations: 8.031 kB / 0.5717 GB, free: 7.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002214/0.5437, allocations: 418.5 kB / 0.5721 GB, free: 7.41 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005994/0.5497, allocations: 2.092 MB / 0.5741 GB, free: 5.266 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003108/0.5501, allocations: 222 kB / 0.5744 GB, free: 5.047 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001271/0.5514, allocations: 283.9 kB / 0.5746 GB, free: 4.77 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01064/0.562, allocations: 3.735 MB / 0.5783 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001287/0.5622, allocations: 7.953 kB / 0.5783 GB, free: 0.957 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006162/0.5628, allocations: 123.9 kB / 0.5784 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001627/0.563, allocations: 133.5 kB / 0.5785 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007778/0.5708, allocations: 3.176 MB / 0.5816 GB, free: 13.51 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02567/0.5965, allocations: 11.49 MB / 0.5928 GB, free: 1.73 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00411/0.6006, allocations: 2.165 MB / 0.595 GB, free: 15.46 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00215/0.6028, allocations: 1.219 MB / 0.5962 GB, free: 14.23 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003462/0.6032, allocations: 211.5 kB / 0.5964 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/0.6033, allocations: 47.88 kB / 0.5964 GB, free: 13.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=139): time 3.486e-06/0.6033, allocations: 0 / 0.5964 GB, free: 13.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=154): time 0.01732/0.6206, allocations: 7.913 MB / 0.6041 GB, free: 5.961 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.6207, allocations: 68.72 kB / 0.6042 GB, free: 5.883 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003284/0.624, allocations: 1.953 MB / 0.6061 GB, free: 3.887 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002031/0.6242, allocations: 49.7 kB / 0.6061 GB, free: 3.832 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001201/0.6254, allocations: 1.405 MB / 0.6075 GB, free: 2.414 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006053/0.626, allocations: 0.55 MB / 0.6081 GB, free: 1.859 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005527/0.6266, allocations: 323.4 kB / 0.6084 GB, free: 1.535 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.6268, allocations: 305.1 kB / 0.6087 GB, free: 1.234 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.6282, allocations: 0.8823 MB / 0.6095 GB, free: 360 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00202/0.6303, allocations: 1.344 MB / 0.6108 GB, free: 14.81 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003551/0.6338, allocations: 2.396 MB / 0.6132 GB, free: 12.22 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.6338, allocations: 4 kB / 0.6132 GB, free: 12.22 MB / 478.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005393/0.6392, allocations: 2.941 MB / 0.616 GB, free: 9.238 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/0.6393, allocations: 12.03 kB / 0.6161 GB, free: 9.227 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.381e-05/0.6393, allocations: 16 kB / 0.6161 GB, free: 9.211 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009908/0.6403, allocations: 387.1 kB / 0.6164 GB, free: 8.82 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/0.642, allocations: 447.3 kB / 0.6169 GB, free: 8.383 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006769/0.6488, allocations: 6.765 MB / 0.6235 GB, free: 1.207 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002081/0.6509, allocations: 127.9 kB / 0.6236 GB, free: 1.082 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001816/0.6511, allocations: 71.98 kB / 0.6237 GB, free: 1.012 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.001921/0.653, allocations: 0.9023 MB / 0.6245 GB, free: 104 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005732/0.6536, allocations: 222.6 kB / 0.6248 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00586/0.6595, allocations: 2.915 MB / 0.6276 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/0.6595, allocations: 16 kB / 0.6276 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.6596, allocations: 8.047 kB / 0.6276 GB, free: 12.92 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.097e-05/0.6596, allocations: 15.95 kB / 0.6276 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01142/0.671, allocations: 6.131 MB / 0.6336 GB, free: 6.645 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.709e-06/0.671, allocations: 4 kB / 0.6336 GB, free: 6.641 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.6721, allocations: 235.6 kB / 0.6339 GB, free: 6.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002276/0.6744, allocations: 0.804 MB / 0.6346 GB, free: 5.598 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001423/0.6745, allocations: 43.98 kB / 0.6347 GB, free: 5.555 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01311/0.6876, allocations: 10.78 MB / 0.6452 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/0.6877, allocations: 7.984 kB / 0.6452 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007272/0.695, allocations: 4.185 MB / 0.6493 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/0.6964, allocations: 491.6 kB / 0.6498 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003688/0.6968, allocations: 43.92 kB / 0.6498 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.6979, allocations: 95.89 kB / 0.6499 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003439/0.6983, allocations: 117.1 kB / 0.65 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.6984, allocations: 47.92 kB / 0.6501 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002202/0.7006, allocations: 1.348 MB / 0.6514 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.51e-07/0.7006, allocations: 0 / 0.6514 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002481/0.7031, allocations: 0.5742 MB / 0.6519 GB, free: 3.34 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.0004931/0.7036, allocations: 195 kB / 0.6521 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004392/0.708, allocations: 2.655 MB / 0.6547 GB, free: 432 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.708, allocations: 0 / 0.6547 GB, free: 432 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002468/0.7105, allocations: 1.642 MB / 0.6563 GB, free: 14.75 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003028/0.7135, allocations: 0.5316 MB / 0.6568 GB, free: 14.22 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/0.7238, allocations: 5.831 MB / 0.6625 GB, free: 8.316 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002085/0.726, allocations: 2.221 MB / 0.6647 GB, free: 6.062 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.001704/0.7277, allocations: 473.8 kB / 0.6652 GB, free: 5.598 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000464/0.7282, allocations: 155.4 kB / 0.6653 GB, free: 5.445 MB / 0.5138 GB Notification: Performance of SimCode: time 1.142e-06/0.7282, allocations: 0 / 0.6653 GB, free: 5.445 MB / 0.5138 GB Notification: Performance of Templates: time 0.05912/0.7873, allocations: 33.51 MB / 0.698 GB, free: 4.168 MB / 0.545 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/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