Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.009916/0.009922, allocations: 189.8 kB / 16.4 MB, free: 5.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.173/4.173, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001877/0.001877, allocations: 103.1 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006744/0.0006749, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.519/0.5198, allocations: 47.56 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.02802/0.5479, allocations: 12.82 MB / 387.4 MB, free: 35.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02599/0.5739, allocations: 5.139 MB / 392.5 MB, free: 30.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004689/0.5787, allocations: 87.56 kB / 392.6 MB, free: 30.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01404/0.5928, allocations: 0.9482 MB / 393.5 MB, free: 29.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01327/0.6061, allocations: 1.382 MB / 394.9 MB, free: 28.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009414/0.6156, allocations: 0.7169 MB / 395.6 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0178/0.6334, allocations: 2.696 MB / 398.3 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01629/0.6498, allocations: 2.536 MB / 400.9 MB, free: 22.44 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007866/0.6577, allocations: 1.265 MB / 402.1 MB, free: 21.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00501/0.6628, allocations: 1.595 MB / 403.7 MB, free: 19.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001711/0.6646, allocations: 200 kB / 403.9 MB, free: 19.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003248/0.6679, allocations: 391.8 kB / 404.3 MB, free: 18.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002517/0.6705, allocations: 0.8527 MB / 405.2 MB, free: 18.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002364/0.6729, allocations: 0.7614 MB / 405.9 MB, free: 17.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01197/0.685, allocations: 5.524 MB / 411.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.816e-06/0.6851, allocations: 0 / 411.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.837e-06/0.6851, allocations: 3.938 kB / 411.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002503/0.6854, allocations: 0 / 411.4 MB, free: 11.82 MB / 298.7 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.0215/0.7069, allocations: 3.942 MB / 415.4 MB, free: 7.812 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.707, allocations: 8.031 kB / 415.4 MB, free: 7.805 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008441/0.7154, allocations: 0.6667 MB / 416.1 MB, free: 7.133 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01099/0.7265, allocations: 2.291 MB / 418.4 MB, free: 4.789 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006113/0.7272, allocations: 266.9 kB / 418.6 MB, free: 4.527 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001895/0.7291, allocations: 347.9 kB / 419 MB, free: 4.188 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02228/0.7514, allocations: 4.409 MB / 423.4 MB, free: 15.72 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002733/0.7518, allocations: 4 kB / 423.4 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001549/0.7534, allocations: 144 kB / 423.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000419/0.7539, allocations: 166.7 kB / 423.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02094/0.7748, allocations: 3.708 MB / 427.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06334/0.8382, allocations: 14.48 MB / 441.9 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01414/0.8524, allocations: 5.365 MB / 447.2 MB, free: 6.727 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01603/0.8685, allocations: 3.2 MB / 450.4 MB, free: 3.441 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.824e-05/0.8687, allocations: 47.88 kB / 450.5 MB, free: 3.387 MB / 330.7 MB Notification: Performance of pre-optimization done (n=138): time 8.646e-06/0.8687, allocations: 4 kB / 450.5 MB, free: 3.383 MB / 330.7 MB Notification: Performance of matching and sorting (n=143): time 0.03084/0.8996, allocations: 5.763 MB / 456.2 MB, free: 13.47 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.548e-05/0.8997, allocations: 64.72 kB / 456.3 MB, free: 13.4 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008298/0.9081, allocations: 1.999 MB / 458.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004416/0.9086, allocations: 53.7 kB / 458.3 MB, free: 11.3 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002623/0.9113, allocations: 1.558 MB / 459.9 MB, free: 9.727 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001221/0.9126, allocations: 0.489 MB / 460.4 MB, free: 9.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003395/0.913, allocations: 36 kB / 460.4 MB, free: 9.195 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004155/0.9134, allocations: 386.8 kB / 460.8 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003783/0.9172, allocations: 0.7496 MB / 461.6 MB, free: 8.059 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004792/0.9221, allocations: 1.357 MB / 462.9 MB, free: 6.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004742/0.9269, allocations: 0.9863 MB / 463.9 MB, free: 5.441 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-05/0.927, allocations: 4 kB / 463.9 MB, free: 5.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.01189/0.939, allocations: 2.453 MB / 466.4 MB, free: 2.949 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.629e-05/0.9391, allocations: 15.98 kB / 466.4 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.469e-05/0.9392, allocations: 20 kB / 466.4 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009998/0.9402, allocations: 142.5 kB / 466.5 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005594/0.9459, allocations: 491.2 kB / 467 MB, free: 2.285 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006259/0.9522, allocations: 3.083 MB / 470.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004402/0.9567, allocations: 115.8 kB / 470.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006532/0.9574, allocations: 87.98 kB / 470.3 MB, free: 14.73 MB / 362.7 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.005099/0.9626, allocations: 1.052 MB / 471.3 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001033/0.9636, allocations: 213.3 kB / 471.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01127/0.9749, allocations: 2.286 MB / 473.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.19e-05/0.9751, allocations: 15.98 kB / 473.9 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.974e-05/0.9751, allocations: 8.125 kB / 473.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.889e-05/0.9752, allocations: 7.922 kB / 473.9 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02596/1.001, allocations: 5.413 MB / 479.3 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.122e-05/1.001, allocations: 4 kB / 479.3 MB, free: 5.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003631/1.005, allocations: 259.6 kB / 479.5 MB, free: 5.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001986/1.007, allocations: 267.5 kB / 479.8 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004218/1.007, allocations: 31.98 kB / 479.8 MB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01619/1.024, allocations: 7.16 MB / 487 MB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.257e-05/1.024, allocations: 4.656 kB / 487 MB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01412/1.038, allocations: 3.513 MB / 490.5 MB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002421/1.04, allocations: 470.2 kB / 491 MB, free: 9.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001037/1.042, allocations: 35.92 kB / 491 MB, free: 9.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003299/1.045, allocations: 83.86 kB / 491.1 MB, free: 8.953 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007019/1.046, allocations: 97.38 kB / 491.2 MB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002727/1.046, allocations: 39.98 kB / 491.2 MB, free: 8.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005857/1.052, allocations: 1.36 MB / 492.6 MB, free: 7.441 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.644e-06/1.052, allocations: 0 / 492.6 MB, free: 7.441 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005507/1.057, allocations: 0.5626 MB / 493.1 MB, free: 6.879 MB / 378.7 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,voltageController.PI_d.x,voltageController.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%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000854/1.058, allocations: 171 kB / 493.3 MB, free: 6.699 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009025/1.067, allocations: 2.177 MB / 495.5 MB, free: 4.477 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/1.068, allocations: 0 / 495.5 MB, free: 4.477 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005556/1.073, allocations: 1.425 MB / 496.9 MB, free: 3.004 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007206/1.08, allocations: 0.4986 MB / 497.4 MB, free: 2.512 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03153/1.112, allocations: 7.463 MB / 0.493 GB, free: 10.98 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007326/1.119, allocations: 2.431 MB / 0.4954 GB, free: 8.516 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001741/1.121, allocations: 175.4 kB / 0.4956 GB, free: 8.344 MB / 394.7 MB Notification: Performance of SimCode: time 2.365e-06/1.121, allocations: 0 / 0.4956 GB, free: 8.344 MB / 394.7 MB Notification: Performance of Templates: time 0.6601/1.781, allocations: 93.77 MB / 0.5872 GB, free: 43.53 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches