Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 108.3 kB / 17.7 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00161/0.00161, allocations: 183.8 kB / 18.62 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 43.94 kB / 351.9 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2891, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01595/0.3051, allocations: 15.89 MB / 417.3 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01054/0.3156, allocations: 5.372 MB / 422.6 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003701/0.3194, allocations: 103.6 kB / 422.7 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003685/0.3231, allocations: 1.122 MB / 423.9 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00476/0.3279, allocations: 1.354 MB / 425.2 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002536/0.3305, allocations: 0.956 MB / 426.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005661/0.3362, allocations: 3.961 MB / 430.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005327/0.3415, allocations: 3.607 MB / 433.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002951/0.3445, allocations: 1.889 MB / 435.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003332/0.3479, allocations: 2.273 MB / 437.9 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008353/0.3487, allocations: 0.5195 MB / 438.4 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001533/0.3503, allocations: 0.7342 MB / 439.2 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001054/0.3513, allocations: 1.297 MB / 440.4 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002475/0.3538, allocations: 2.252 MB / 442.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00649/0.3603, allocations: 6.893 MB / 449.6 MB, free: 8.406 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3603, allocations: 4 kB / 449.6 MB, free: 8.402 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.3604, allocations: 0 / 449.6 MB, free: 8.402 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001723/0.3605, allocations: 3.938 kB / 449.6 MB, free: 8.398 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01152/0.3721, allocations: 4.665 MB / 454.3 MB, free: 3.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.3721, allocations: 12.03 kB / 454.3 MB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003069/0.3752, allocations: 0.6714 MB / 454.9 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004719/0.3799, allocations: 2.529 MB / 457.5 MB, free: 400 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001966/0.3802, allocations: 259.3 kB / 457.7 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006338/0.3808, allocations: 352.1 kB / 458.1 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007763/0.3886, allocations: 4.468 MB / 462.5 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.968e-05/0.3887, allocations: 7.922 kB / 462.6 MB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003048/0.389, allocations: 152 kB / 462.7 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001462/0.3892, allocations: 162.8 kB / 462.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006418/0.3956, allocations: 3.751 MB / 466.6 MB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0231/0.4187, allocations: 14.3 MB / 480.9 MB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005037/0.4238, allocations: 5.361 MB / 486.3 MB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001962/0.4258, allocations: 1.279 MB / 487.5 MB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006367/0.4322, allocations: 3.819 MB / 491.4 MB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.4322, allocations: 51.81 kB / 491.4 MB, free: 13.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 2.765e-06/0.4322, allocations: 0 / 491.4 MB, free: 13.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.009384/0.4416, allocations: 5.498 MB / 496.9 MB, free: 7.484 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.4417, allocations: 64.72 kB / 497 MB, free: 7.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00288/0.4446, allocations: 2.102 MB / 499.1 MB, free: 5.273 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.4447, allocations: 45.7 kB / 499.1 MB, free: 5.223 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001143/0.4459, allocations: 1.661 MB / 0.489 GB, free: 3.543 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003322/0.4462, allocations: 457.4 kB / 0.4895 GB, free: 3.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004592/0.4467, allocations: 343.1 kB / 0.4898 GB, free: 2.746 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.306e-05/0.4468, allocations: 305.1 kB / 0.4901 GB, free: 2.445 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.4479, allocations: 0.7184 MB / 0.4908 GB, free: 1.727 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.4493, allocations: 1.352 MB / 0.4921 GB, free: 88 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002726/0.4521, allocations: 2.226 MB / 0.4943 GB, free: 13.58 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.4521, allocations: 7.938 kB / 0.4943 GB, free: 13.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003945/0.456, allocations: 2.522 MB / 0.4968 GB, free: 11.01 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.4561, allocations: 12 kB / 0.4968 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/0.4561, allocations: 24.03 kB / 0.4968 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003734/0.4565, allocations: 138.5 kB / 0.4969 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.4581, allocations: 463.3 kB / 0.4974 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002533/0.4607, allocations: 3.356 MB / 0.5007 GB, free: 6.738 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.4623, allocations: 107.8 kB / 0.5008 GB, free: 6.633 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.4625, allocations: 83.98 kB / 0.5008 GB, free: 6.551 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001797/0.4643, allocations: 1.051 MB / 0.5019 GB, free: 5.488 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004582/0.4648, allocations: 213.3 kB / 0.5021 GB, free: 5.277 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003428/0.4682, allocations: 2.192 MB / 0.5042 GB, free: 3.023 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.4682, allocations: 12 kB / 0.5042 GB, free: 3.012 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.4682, allocations: 8 kB / 0.5042 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.4683, allocations: 11.91 kB / 0.5042 GB, free: 2.992 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007791/0.4761, allocations: 5.178 MB / 0.5093 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.4761, allocations: 4 kB / 0.5093 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.4772, allocations: 227.9 kB / 0.5095 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006958/0.4779, allocations: 279.2 kB / 0.5098 GB, free: 13.17 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.3e-05/0.478, allocations: 28 kB / 0.5098 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006557/0.4845, allocations: 7.814 MB / 0.5174 GB, free: 4.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.4846, allocations: 4.156 kB / 0.5174 GB, free: 4.766 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004814/0.4894, allocations: 3.199 MB / 0.5206 GB, free: 1.473 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/0.4905, allocations: 450.4 kB / 0.521 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003156/0.4908, allocations: 28 kB / 0.521 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.4919, allocations: 67.92 kB / 0.5211 GB, free: 0.918 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002192/0.4921, allocations: 93.06 kB / 0.5212 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.064e-05/0.4922, allocations: 43.98 kB / 0.5212 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002161/0.4944, allocations: 1.431 MB / 0.5226 GB, free: 15.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4944, allocations: 0 / 0.5226 GB, free: 15.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002073/0.4964, allocations: 0.5625 MB / 0.5232 GB, free: 14.77 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003372/0.4968, allocations: 174.9 kB / 0.5233 GB, free: 14.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003189/0.5, allocations: 2.107 MB / 0.5254 GB, free: 12.44 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.5, allocations: 0 / 0.5254 GB, free: 12.44 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001944/0.502, allocations: 1.394 MB / 0.5268 GB, free: 11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002734/0.5047, allocations: 0.5429 MB / 0.5273 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.5153, allocations: 6.073 MB / 0.5332 GB, free: 4.328 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001945/0.5173, allocations: 2.373 MB / 0.5355 GB, free: 1.922 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007267/0.5181, allocations: 171.4 kB / 0.5357 GB, free: 1.758 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5181, allocations: 0 / 0.5357 GB, free: 1.758 MB / 462.1 MB Notification: Performance of Templates: time 0.2987/0.8167, allocations: 99.72 MB / 0.6331 GB, free: 41.16 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches