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.00104/0.00104, allocations: 94.3 kB / 16.3 MB, free: 5.996 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.00103/0.00103, allocations: 179.3 kB / 17.19 MB, free: 5.91 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.265/1.265, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000245/0.0002451, allocations: 5.156 kB / 300.7 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.09654, allocations: 50.43 MB / 351.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01359/0.1102, allocations: 12.88 MB / 364 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008618/0.1188, allocations: 5.1 MB / 369.1 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002186/0.1211, allocations: 87.62 kB / 369.2 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002748/0.1238, allocations: 0.956 MB / 370.2 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004698/0.1285, allocations: 1.386 MB / 371.6 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002331/0.1309, allocations: 0.7191 MB / 372.3 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004717/0.1356, allocations: 2.707 MB / 375 MB, free: 3.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00372/0.1394, allocations: 2.584 MB / 377.6 MB, free: 1.199 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001873/0.1412, allocations: 1.253 MB / 378.8 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002426/0.1437, allocations: 1.599 MB / 380.4 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006673/0.1444, allocations: 200 kB / 380.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00132/0.1457, allocations: 383.8 kB / 381 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007923/0.1465, allocations: 0.8526 MB / 381.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007602/0.1473, allocations: 0.7614 MB / 382.6 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004742/0.152, allocations: 5.54 MB / 388.2 MB, free: 6.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.152, allocations: 0 / 388.2 MB, free: 6.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.152, allocations: 0 / 388.2 MB, free: 6.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001382/0.1522, allocations: 3.938 kB / 388.2 MB, free: 6.582 MB / 318.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.009377/0.1616, allocations: 3.948 MB / 392.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.1616, allocations: 8.031 kB / 392.1 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003236/0.1649, allocations: 0.6783 MB / 392.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004722/0.1696, allocations: 2.381 MB / 395.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002299/0.1699, allocations: 282.9 kB / 395.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005364/0.1704, allocations: 343.8 kB / 395.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007168/0.1776, allocations: 4.413 MB / 400.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.637e-05/0.1777, allocations: 4 kB / 400.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002966/0.178, allocations: 140 kB / 400.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001411/0.1781, allocations: 162.8 kB / 400.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006074/0.1842, allocations: 3.72 MB / 404.2 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02097/0.2052, allocations: 14.47 MB / 418.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005147/0.2104, allocations: 5.36 MB / 424 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1921/0.4025, allocations: 3.189 MB / 427.2 MB, free: 60.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.4026, allocations: 44.44 kB / 427.3 MB, free: 60.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=138): time 3.397e-06/0.4026, allocations: 0.9688 kB / 427.3 MB, free: 60.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=143): time 0.009099/0.4117, allocations: 5.76 MB / 433 MB, free: 59.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.4117, allocations: 71.45 kB / 433.1 MB, free: 59.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002638/0.4144, allocations: 1.997 MB / 435.1 MB, free: 58.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.691e-05/0.4145, allocations: 50.77 kB / 435.2 MB, free: 58.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009827/0.4155, allocations: 1.65 MB / 436.8 MB, free: 58.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002908/0.4158, allocations: 497.4 kB / 437.3 MB, free: 57.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.251e-05/0.4159, allocations: 38.78 kB / 437.3 MB, free: 57.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.416, allocations: 384.1 kB / 437.7 MB, free: 57.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.4171, allocations: 0.7447 MB / 438.4 MB, free: 57.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.4184, allocations: 1.364 MB / 439.8 MB, free: 56.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001282/0.4196, allocations: 0.9886 MB / 440.8 MB, free: 55.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/0.4197, allocations: 10.03 kB / 440.8 MB, free: 55.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.00341/0.4231, allocations: 2.573 MB / 443.4 MB, free: 54.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.4231, allocations: 15.75 kB / 443.4 MB, free: 54.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-05/0.4232, allocations: 19.69 kB / 443.4 MB, free: 54.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003484/0.4235, allocations: 149.6 kB / 443.6 MB, free: 54.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0016/0.4251, allocations: 484.2 kB / 444 MB, free: 54.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001761/0.4269, allocations: 3.094 MB / 447.1 MB, free: 51.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001501/0.4284, allocations: 113.4 kB / 447.2 MB, free: 51.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.4286, allocations: 84.91 kB / 447.3 MB, free: 51.6 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (235): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001735/0.4303, allocations: 1.05 MB / 448.4 MB, free: 51.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002927/0.4306, allocations: 227.1 kB / 448.6 MB, free: 50.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003003/0.4336, allocations: 2.281 MB / 450.9 MB, free: 49.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.4336, allocations: 17.52 kB / 450.9 MB, free: 49.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.4336, allocations: 5.25 kB / 450.9 MB, free: 49.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.4337, allocations: 11.22 kB / 450.9 MB, free: 49.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006771/0.4404, allocations: 5.416 MB / 456.3 MB, free: 46.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.4405, allocations: 8.031 kB / 456.3 MB, free: 46.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009592/0.4414, allocations: 251.6 kB / 456.6 MB, free: 46.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005633/0.442, allocations: 264.1 kB / 456.8 MB, free: 46.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.52e-05/0.4421, allocations: 35.98 kB / 456.9 MB, free: 46.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00429/0.4464, allocations: 7.153 MB / 464 MB, free: 38.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.4464, allocations: 7.938 kB / 464 MB, free: 38.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003682/0.4501, allocations: 3.518 MB / 467.6 MB, free: 34.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007716/0.4509, allocations: 466.3 kB / 468 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002366/0.4511, allocations: 35.98 kB / 468 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008962/0.452, allocations: 69.78 kB / 468.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.4522, allocations: 101.1 kB / 468.2 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.285e-05/0.4523, allocations: 43.98 kB / 468.3 MB, free: 34.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001549/0.4538, allocations: 1.356 MB / 469.6 MB, free: 32.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4538, allocations: 0 / 469.6 MB, free: 32.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001747/0.4556, allocations: 0.5625 MB / 470.2 MB, free: 32.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (123): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002446/0.4558, allocations: 188.9 kB / 470.4 MB, free: 32.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002347/0.4582, allocations: 2.169 MB / 472.5 MB, free: 29.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4582, allocations: 1 kB / 472.5 MB, free: 29.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001475/0.4597, allocations: 1.435 MB / 474 MB, free: 28.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001761/0.4614, allocations: 0.4966 MB / 474.5 MB, free: 27.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007793/0.4692, allocations: 7.431 MB / 481.9 MB, free: 20.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001625/0.4709, allocations: 2.483 MB / 484.4 MB, free: 17.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001496/0.4724, allocations: 0.4985 MB / 484.9 MB, free: 17.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003695/0.4728, allocations: 155.4 kB / 485 MB, free: 17.25 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4728, allocations: 0 / 485 MB, free: 17.25 MB / 350.1 MB Notification: Performance of Templates: time 0.03991/0.5127, allocations: 26.03 MB / 0.4991 GB, free: 7.488 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../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