Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.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) 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(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008604/0.0008603, allocations: 95.69 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009633/0.0009633, allocations: 206.5 kB / 18.93 MB, free: 4.848 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.7 MB / 247.5 MB, free: 9.703 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003695, allocations: 4 kB / 308.4 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1251, allocations: 51.53 MB / 359.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.2972/0.4223, allocations: 21.18 MB / 381.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01627/0.4387, allocations: 6.505 MB / 387.6 MB, free: 6.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006192/0.4449, allocations: 131.4 kB / 387.7 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005346/0.4503, allocations: 1.284 MB / 389 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009598/0.4599, allocations: 1.836 MB / 390.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004616/0.4646, allocations: 1.202 MB / 392.1 MB, free: 4.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01248/0.477, allocations: 7.18 MB / 399.2 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007647/0.4847, allocations: 4.639 MB / 403.9 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004788/0.4895, allocations: 2.171 MB / 406 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005287/0.4949, allocations: 2.931 MB / 409 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001053/0.4959, allocations: 340 kB / 409.3 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003056/0.499, allocations: 0.6597 MB / 410 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001567/0.5006, allocations: 1.452 MB / 411.4 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004922/0.5055, allocations: 2.92 MB / 414.3 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01025/0.5158, allocations: 8.812 MB / 423.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.5158, allocations: 0 / 423.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.167e-06/0.5158, allocations: 0 / 423.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003367/0.5162, allocations: 4 kB / 423.2 MB, free: 12.61 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01653/0.5327, allocations: 5.846 MB / 429 MB, free: 6.691 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.5328, allocations: 8.031 kB / 429 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006061/0.5389, allocations: 1.075 MB / 430.1 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007962/0.5468, allocations: 3.633 MB / 433.7 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004164/0.5473, allocations: 423.3 kB / 434.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001441/0.5488, allocations: 0.5272 MB / 434.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0154/0.5642, allocations: 7.071 MB / 441.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001399/0.5644, allocations: 19.83 kB / 441.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005093/0.5649, allocations: 220 kB / 442 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002534/0.5652, allocations: 258.6 kB / 442.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01221/0.5774, allocations: 5.979 MB / 448.2 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04251/0.6199, allocations: 22.72 MB / 470.9 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009741/0.6297, allocations: 8.566 MB / 479.5 MB, free: 2.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004332/0.6341, allocations: 2.304 MB / 481.8 MB, free: 192 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01455/0.6487, allocations: 6.49 MB / 488.3 MB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.402e-05/0.6488, allocations: 52.56 kB / 488.3 MB, free: 9.438 MB / 398.1 MB Notification: Performance of pre-optimization done (n=220): time 5.951e-06/0.6488, allocations: 0 / 488.3 MB, free: 9.438 MB / 398.1 MB Notification: Performance of matching and sorting (n=240): time 0.02717/0.676, allocations: 11.27 MB / 499.6 MB, free: 13.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.6761, allocations: 77.41 kB / 499.7 MB, free: 13.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007329/0.6834, allocations: 3.161 MB / 0.4911 GB, free: 10.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003729/0.6838, allocations: 69.7 kB / 0.4911 GB, free: 10.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002149/0.686, allocations: 2.51 MB / 0.4936 GB, free: 8.066 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001008/0.687, allocations: 0.8318 MB / 0.4944 GB, free: 7.223 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005587/0.6876, allocations: 248.4 kB / 0.4946 GB, free: 6.973 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.6877, allocations: 305.1 kB / 0.4949 GB, free: 6.672 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002644/0.6904, allocations: 1.349 MB / 0.4962 GB, free: 5.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003428/0.6938, allocations: 2.358 MB / 0.4985 GB, free: 2.516 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006179/0.7, allocations: 3.952 MB / 0.5024 GB, free: 14.09 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-05/0.7001, allocations: 15.94 kB / 0.5024 GB, free: 14.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.0104/0.7105, allocations: 4.756 MB / 0.507 GB, free: 9.203 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.537e-05/0.7105, allocations: 23 kB / 0.5071 GB, free: 9.184 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.405e-05/0.7106, allocations: 32 kB / 0.5071 GB, free: 9.152 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001378/0.712, allocations: 0.5515 MB / 0.5076 GB, free: 8.586 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002836/0.7148, allocations: 0.7449 MB / 0.5084 GB, free: 7.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009833/0.7247, allocations: 9.594 MB / 0.5177 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003426/0.7281, allocations: 187.7 kB / 0.5179 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005337/0.7287, allocations: 147.9 kB / 0.5181 GB, free: 13.25 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (377): * Single equations (assignments): 370 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00386/0.7326, allocations: 1.582 MB / 0.5196 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001091/0.7337, allocations: 355.6 kB / 0.5199 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0082/0.7419, allocations: 4.101 MB / 0.5239 GB, free: 7.105 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-05/0.7419, allocations: 24 kB / 0.524 GB, free: 7.082 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.237e-05/0.742, allocations: 12 kB / 0.524 GB, free: 7.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.472e-05/0.742, allocations: 15.89 kB / 0.524 GB, free: 7.055 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2634/1.005, allocations: 9.02 MB / 0.5328 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.853e-05/1.006, allocations: 10.25 kB / 0.5328 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002258/1.008, allocations: 414.4 kB / 0.5332 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002677/1.01, allocations: 0.7576 MB / 0.5339 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004602/1.011, allocations: 67.25 kB / 0.534 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01517/1.026, allocations: 15.51 MB / 0.5492 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.968e-06/1.026, allocations: 9.562 kB / 0.5492 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01362/1.04, allocations: 5.909 MB / 0.5549 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002651/1.042, allocations: 0.7035 MB / 0.5556 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001483/1.044, allocations: 62.41 kB / 0.5557 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003021/1.047, allocations: 143.6 kB / 0.5558 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000757/1.048, allocations: 190.7 kB / 0.556 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002931/1.048, allocations: 69.95 kB / 0.5561 GB, free: 120.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006149/1.054, allocations: 2.139 MB / 0.5582 GB, free: 119.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.7e-07/1.054, allocations: 0 / 0.5582 GB, free: 119.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006718/1.061, allocations: 1.005 MB / 0.5591 GB, free: 119.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * 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 (198): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009496/1.062, allocations: 266.8 kB / 0.5594 GB, free: 119.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007276/1.069, allocations: 4.189 MB / 0.5635 GB, free: 117.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/1.069, allocations: 2.062 kB / 0.5635 GB, free: 117.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004259/1.074, allocations: 2.776 MB / 0.5662 GB, free: 116 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008439/1.082, allocations: 0.9127 MB / 0.5671 GB, free: 115.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0216/1.104, allocations: 12.56 MB / 0.5794 GB, free: 108.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00427/1.108, allocations: 3.344 MB / 0.5826 GB, free: 105.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001354/1.109, allocations: 267.3 kB / 0.5829 GB, free: 105.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/1.109, allocations: 0 / 0.5829 GB, free: 105.4 MB / 446.1 MB Notification: Performance of Templates: time 0.5145/1.624, allocations: 265.3 MB / 0.842 GB, free: 19.18 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches