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.00141/0.00141, allocations: 121.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.00165/0.00165, allocations: 203.8 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, 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.2519/0.2519, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 79.86 kB / 481.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4792/0.4805, allocations: 62.43 MB / 0.531 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01651/0.4971, allocations: 11.72 MB / 0.5424 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01032/0.5074, allocations: 3.967 MB / 0.5463 GB, free: 1.059 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003398/0.5109, allocations: 77.19 kB / 0.5464 GB, free: 1.035 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003451/0.5144, allocations: 0.9186 MB / 0.5473 GB, free: 336 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004863/0.5193, allocations: 1.002 MB / 0.5483 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001538/0.5209, allocations: 0.5127 MB / 0.5488 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004995/0.5259, allocations: 3.347 MB / 0.552 GB, free: 12.15 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003765/0.5296, allocations: 3.037 MB / 0.555 GB, free: 9.047 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003826/0.5335, allocations: 1.573 MB / 0.5565 GB, free: 7.469 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003684/0.5372, allocations: 2.008 MB / 0.5585 GB, free: 5.453 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000859/0.5381, allocations: 432 kB / 0.5589 GB, free: 5.031 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001474/0.5396, allocations: 0.5428 MB / 0.5594 GB, free: 4.488 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001216/0.5408, allocations: 1.227 MB / 0.5606 GB, free: 3.258 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002605/0.5434, allocations: 1.894 MB / 0.5625 GB, free: 1.355 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007262/0.5507, allocations: 5.586 MB / 0.5679 GB, free: 11.75 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.091e-05/0.5507, allocations: 0 / 0.5679 GB, free: 11.75 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.5507, allocations: 3.938 kB / 0.5679 GB, free: 11.75 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001436/0.5509, allocations: 7.938 kB / 0.5679 GB, free: 11.74 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.009472/0.5603, allocations: 3.841 MB / 0.5717 GB, free: 7.832 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.5604, allocations: 12.03 kB / 0.5717 GB, free: 7.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001192/0.5616, allocations: 400.5 kB / 0.5721 GB, free: 7.426 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003623/0.5653, allocations: 2.083 MB / 0.5741 GB, free: 5.289 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001814/0.5654, allocations: 214 kB / 0.5743 GB, free: 5.078 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004323/0.5659, allocations: 287.8 kB / 0.5746 GB, free: 4.797 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006853/0.5727, allocations: 3.735 MB / 0.5782 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.122e-05/0.5728, allocations: 7.906 kB / 0.5783 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002886/0.5731, allocations: 123.9 kB / 0.5784 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001772/0.5733, allocations: 137.5 kB / 0.5785 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005902/0.5792, allocations: 3.172 MB / 0.5816 GB, free: 13.54 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.028/0.6073, allocations: 11.45 MB / 0.5928 GB, free: 1.785 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005553/0.6129, allocations: 2.161 MB / 0.5949 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003088/0.616, allocations: 1.215 MB / 0.5961 GB, free: 14.29 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004425/0.6165, allocations: 215.4 kB / 0.5963 GB, free: 14.04 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.031e-05/0.6166, allocations: 51.88 kB / 0.5963 GB, free: 13.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=139): time 5.36e-06/0.6166, allocations: 0 / 0.5963 GB, free: 13.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=154): time 0.0243/0.6409, allocations: 7.872 MB / 0.604 GB, free: 6.051 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.576e-05/0.641, allocations: 68.72 kB / 0.6041 GB, free: 5.973 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004402/0.6454, allocations: 1.945 MB / 0.606 GB, free: 3.984 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002491/0.6457, allocations: 49.7 kB / 0.606 GB, free: 3.93 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001236/0.6469, allocations: 1.37 MB / 0.6074 GB, free: 2.543 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006965/0.6476, allocations: 0.5159 MB / 0.6079 GB, free: 2.02 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007294/0.6484, allocations: 323.3 kB / 0.6082 GB, free: 1.695 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.6485, allocations: 305.1 kB / 0.6085 GB, free: 1.395 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001768/0.6503, allocations: 0.8862 MB / 0.6093 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00212/0.6524, allocations: 1.344 MB / 0.6107 GB, free: 14.97 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003872/0.6563, allocations: 2.393 MB / 0.613 GB, free: 12.39 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.445e-05/0.6564, allocations: 4 kB / 0.613 GB, free: 12.38 MB / 478.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006308/0.6627, allocations: 2.936 MB / 0.6159 GB, free: 9.406 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.6627, allocations: 16.09 kB / 0.6159 GB, free: 9.391 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.06e-05/0.6628, allocations: 12 kB / 0.6159 GB, free: 9.379 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/0.6638, allocations: 395.1 kB / 0.6163 GB, free: 8.98 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001791/0.6656, allocations: 447.3 kB / 0.6167 GB, free: 8.543 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007234/0.6728, allocations: 6.761 MB / 0.6233 GB, free: 1.367 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002176/0.6751, allocations: 127.7 kB / 0.6234 GB, free: 1.242 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002308/0.6753, allocations: 71.98 kB / 0.6235 GB, free: 1.172 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.00217/0.6775, allocations: 0.9023 MB / 0.6244 GB, free: 268 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007674/0.6783, allocations: 213.5 kB / 0.6246 GB, free: 52 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005662/0.6839, allocations: 2.907 MB / 0.6274 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.98e-05/0.684, allocations: 20.08 kB / 0.6274 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.684, allocations: 12 kB / 0.6274 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.8e-05/0.684, allocations: 7.969 kB / 0.6274 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01179/0.6958, allocations: 6.13 MB / 0.6334 GB, free: 6.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/0.6959, allocations: 4 kB / 0.6334 GB, free: 6.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001173/0.6971, allocations: 239.6 kB / 0.6337 GB, free: 6.582 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002417/0.6995, allocations: 0.8078 MB / 0.6345 GB, free: 5.766 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001692/0.6997, allocations: 40.08 kB / 0.6345 GB, free: 5.727 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01288/0.7126, allocations: 10.76 MB / 0.645 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/0.7126, allocations: 4 kB / 0.645 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007599/0.7203, allocations: 4.176 MB / 0.6491 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00142/0.7217, allocations: 486.4 kB / 0.6495 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003451/0.7221, allocations: 35.94 kB / 0.6496 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.7232, allocations: 99.88 kB / 0.6497 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004076/0.7236, allocations: 121.1 kB / 0.6498 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.7237, allocations: 51.92 kB / 0.6498 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002342/0.726, allocations: 1.341 MB / 0.6512 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.726, allocations: 0 / 0.6512 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002433/0.7285, allocations: 0.5742 MB / 0.6517 GB, free: 3.543 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.0005077/0.729, allocations: 199.1 kB / 0.6519 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004439/0.7335, allocations: 2.647 MB / 0.6545 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.7335, allocations: 384 / 0.6545 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002601/0.7361, allocations: 1.638 MB / 0.6561 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002902/0.739, allocations: 0.5351 MB / 0.6566 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.7498, allocations: 5.74 MB / 0.6622 GB, free: 8.625 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002147/0.752, allocations: 2.221 MB / 0.6644 GB, free: 6.371 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001723/0.7537, allocations: 469.8 kB / 0.6648 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004712/0.7542, allocations: 151.4 kB / 0.665 GB, free: 5.762 MB / 0.5137 GB Notification: Performance of SimCode: time 6.61e-07/0.7542, allocations: 0 / 0.665 GB, free: 5.762 MB / 0.5137 GB Notification: Performance of Templates: time 0.06438/0.8186, allocations: 33.5 MB / 0.6977 GB, free: 4.492 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