Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001042/0.001042, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.155/1.155, allocations: 205.1 MB / 223.7 MB, free: 8.48 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.0008559/0.0008559, allocations: 94.25 kB / 271.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007323/0.0007324, allocations: 35.94 kB / 327.2 MB, free: 316 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1898, allocations: 46.63 MB / 373.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01227/0.2021, allocations: 15.63 MB / 389.5 MB, free: 33.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008133/0.2103, allocations: 5.329 MB / 394.8 MB, free: 28.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002611/0.2129, allocations: 95.56 kB / 394.9 MB, free: 28.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002369/0.2153, allocations: 0.953 MB / 395.8 MB, free: 27.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003259/0.2186, allocations: 1.228 MB / 397.1 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001629/0.2203, allocations: 0.8808 MB / 397.9 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003299/0.2236, allocations: 4.136 MB / 402.1 MB, free: 21.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002338/0.2259, allocations: 2.997 MB / 405.1 MB, free: 18.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00143/0.2274, allocations: 1.58 MB / 406.7 MB, free: 16.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001492/0.2289, allocations: 2.121 MB / 408.8 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003753/0.2293, allocations: 316 kB / 409.1 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000944/0.2302, allocations: 0.5388 MB / 409.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005994/0.2308, allocations: 1.071 MB / 410.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00124/0.2321, allocations: 2.021 MB / 412.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003519/0.2356, allocations: 6.644 MB / 419.4 MB, free: 3.766 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2356, allocations: 0 / 419.4 MB, free: 3.766 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.2356, allocations: 0 / 419.4 MB, free: 3.766 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.628e-05/0.2357, allocations: 4 kB / 419.4 MB, free: 3.762 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.00808/0.2438, allocations: 4.657 MB / 424 MB, free: 15.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.2439, allocations: 15.97 kB / 424 MB, free: 15.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002543/0.2464, allocations: 0.6753 MB / 424.7 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003833/0.2503, allocations: 2.334 MB / 427.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.2505, allocations: 267.5 kB / 427.3 MB, free: 11.69 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004366/0.2509, allocations: 347.8 kB / 427.7 MB, free: 11.35 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006714/0.2576, allocations: 4.464 MB / 432.1 MB, free: 6.828 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.098e-05/0.2577, allocations: 0 / 432.1 MB, free: 6.828 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002684/0.258, allocations: 136 kB / 432.3 MB, free: 6.695 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001342/0.2581, allocations: 166.7 kB / 432.4 MB, free: 6.531 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005612/0.2638, allocations: 3.735 MB / 436.1 MB, free: 2.789 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01906/0.2828, allocations: 14.5 MB / 450.6 MB, free: 3.863 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004639/0.2875, allocations: 5.36 MB / 456 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001716/0.2892, allocations: 1.278 MB / 457.3 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005707/0.295, allocations: 3.815 MB / 461.1 MB, free: 8.609 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.295, allocations: 47.81 kB / 461.1 MB, free: 8.555 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 2.404e-06/0.295, allocations: 4 kB / 461.2 MB, free: 8.551 MB / 346.7 MB Notification: Performance of matching and sorting (n=131): time 0.008177/0.3032, allocations: 5.456 MB / 466.6 MB, free: 2.922 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.3033, allocations: 68.66 kB / 466.7 MB, free: 2.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002485/0.3057, allocations: 2.098 MB / 468.8 MB, free: 0.707 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.936e-05/0.3058, allocations: 53.7 kB / 468.8 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009709/0.3068, allocations: 1.657 MB / 470.5 MB, free: 14.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003005/0.3071, allocations: 465.4 kB / 470.9 MB, free: 14.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004368/0.3076, allocations: 335.1 kB / 471.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.906e-05/0.3077, allocations: 309.1 kB / 471.6 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.3087, allocations: 0.7106 MB / 472.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.31, allocations: 1.361 MB / 473.6 MB, free: 11.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002516/0.3126, allocations: 2.219 MB / 475.9 MB, free: 9.012 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.3126, allocations: 15.94 kB / 475.9 MB, free: 8.996 MB / 362.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003432/0.316, allocations: 2.513 MB / 478.4 MB, free: 6.445 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.3161, allocations: 12 kB / 478.4 MB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.862e-05/0.3161, allocations: 20 kB / 478.4 MB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003478/0.3164, allocations: 143 kB / 478.6 MB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001496/0.318, allocations: 467.2 kB / 479 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002276/0.3202, allocations: 3.079 MB / 482.1 MB, free: 2.457 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/0.3215, allocations: 107.8 kB / 482.2 MB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.3216, allocations: 84 kB / 482.3 MB, free: 2.27 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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.001497/0.3231, allocations: 1.055 MB / 483.3 MB, free: 1.203 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002703/0.3234, allocations: 217.3 kB / 483.5 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003157/0.3266, allocations: 2.177 MB / 485.7 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.3266, allocations: 12 kB / 485.7 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.3266, allocations: 8 kB / 485.7 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.3266, allocations: 7.969 kB / 485.8 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006986/0.3336, allocations: 5.157 MB / 490.9 MB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.3336, allocations: 0 / 490.9 MB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009182/0.3346, allocations: 231.7 kB / 491.1 MB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006234/0.3352, allocations: 283.3 kB / 491.4 MB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-05/0.3353, allocations: 24 kB / 491.4 MB, free: 8.891 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005558/0.3408, allocations: 7.119 MB / 498.6 MB, free: 1.234 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3409, allocations: 4.094 kB / 498.6 MB, free: 1.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1623/0.5031, allocations: 21.33 MB / 0.5077 GB, free: 114.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009364/0.5041, allocations: 451.2 kB / 0.5081 GB, free: 114.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003536/0.5045, allocations: 28.42 kB / 0.5082 GB, free: 114.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009206/0.5054, allocations: 69.22 kB / 0.5082 GB, free: 114.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.5056, allocations: 94.66 kB / 0.5083 GB, free: 114.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.281e-05/0.5057, allocations: 36.39 kB / 0.5083 GB, free: 114.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002145/0.5078, allocations: 1.431 MB / 0.5097 GB, free: 114.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5078, allocations: 3.766 kB / 0.5098 GB, free: 114.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00223/0.5101, allocations: 0.7579 MB / 0.5105 GB, free: 114.4 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (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.0002485/0.5103, allocations: 176.4 kB / 0.5107 GB, free: 114.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002513/0.5128, allocations: 2.095 MB / 0.5127 GB, free: 113.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5129, allocations: 0 / 0.5127 GB, free: 113.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/0.5144, allocations: 1.375 MB / 0.514 GB, free: 112.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002018/0.5164, allocations: 0.5126 MB / 0.5145 GB, free: 112.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008747/0.5252, allocations: 9.066 MB / 0.5234 GB, free: 107.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001507/0.5267, allocations: 2.456 MB / 0.5258 GB, free: 106.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001328/0.5281, allocations: 0.5057 MB / 0.5263 GB, free: 106.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004053/0.5285, allocations: 161.8 kB / 0.5264 GB, free: 106.2 MB / 394.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5285, allocations: 0 / 0.5264 GB, free: 106.2 MB / 394.7 MB Notification: Performance of Templates: time 0.03667/0.5651, allocations: 32.26 MB / 0.558 GB, free: 75.44 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches