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/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 3.2.3+maint.om/package.mo", uses=false) 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 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 92.03 kB / 16.95 MB, free: 6.441 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.001137/0.001137, allocations: 181.2 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.656/1.656, allocations: 205.4 MB / 224 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004645/0.0004646, allocations: 12 kB / 280.8 MB, free: 3.711 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1311, allocations: 47.59 MB / 328.4 MB, free: 4.055 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.0178/0.149, allocations: 13.9 MB / 342.3 MB, free: 6.102 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01403/0.1631, allocations: 5.018 MB / 347.3 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004915/0.1681, allocations: 91.56 kB / 347.4 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004072/0.1722, allocations: 0.8427 MB / 348.2 MB, free: 136 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005394/0.1776, allocations: 1.099 MB / 349.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002243/0.1799, allocations: 0.6665 MB / 350 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007026/0.1869, allocations: 3.834 MB / 353.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003636/0.1906, allocations: 2.516 MB / 356.3 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002743/0.1933, allocations: 1.303 MB / 357.6 MB, free: 6.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002452/0.1958, allocations: 1.735 MB / 359.4 MB, free: 4.895 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000366/0.1962, allocations: 208 kB / 359.6 MB, free: 4.691 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/0.1973, allocations: 415.8 kB / 360 MB, free: 4.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009102/0.1982, allocations: 0.8875 MB / 360.9 MB, free: 3.395 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.1993, allocations: 0.7575 MB / 361.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005489/0.2048, allocations: 5.575 MB / 367.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.2048, allocations: 0 / 367.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.2048, allocations: 0 / 367.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002066/0.2051, allocations: 0 / 367.2 MB, free: 13.04 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.01048/0.2155, allocations: 3.952 MB / 371.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.2156, allocations: 11.97 kB / 371.2 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00334/0.219, allocations: 0.6822 MB / 371.9 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004608/0.2236, allocations: 2.26 MB / 374.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003115/0.2239, allocations: 270.9 kB / 374.4 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005609/0.2245, allocations: 347.9 kB / 374.7 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009016/0.2335, allocations: 4.433 MB / 379.1 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-05/0.2336, allocations: 4 kB / 379.2 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003207/0.2339, allocations: 144 kB / 379.3 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001937/0.2341, allocations: 170.7 kB / 379.5 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3362/0.5704, allocations: 3.71 MB / 383.2 MB, free: 30.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04278/0.6132, allocations: 14.54 MB / 397.7 MB, free: 26.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007657/0.621, allocations: 5.361 MB / 403.1 MB, free: 22.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002885/0.6239, allocations: 1.276 MB / 404.3 MB, free: 22.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009506/0.6334, allocations: 3.816 MB / 408.2 MB, free: 19.78 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/0.6335, allocations: 51.2 kB / 408.2 MB, free: 19.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 4.298e-06/0.6335, allocations: 0 / 408.2 MB, free: 19.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.01387/0.6474, allocations: 5.504 MB / 413.7 MB, free: 16.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.6475, allocations: 64.28 kB / 413.8 MB, free: 16.21 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004513/0.652, allocations: 2.089 MB / 415.9 MB, free: 14.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.6521, allocations: 47.89 kB / 415.9 MB, free: 14.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.6534, allocations: 1.662 MB / 417.6 MB, free: 12.44 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004695/0.6539, allocations: 457.5 kB / 418 MB, free: 12 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.654, allocations: 36 kB / 418.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.6542, allocations: 381.8 kB / 418.4 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.6553, allocations: 0.7106 MB / 419.1 MB, free: 10.87 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.6564, allocations: 1.348 MB / 420.5 MB, free: 9.246 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.6576, allocations: 0.9478 MB / 421.4 MB, free: 8.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.6576, allocations: 11.98 kB / 421.4 MB, free: 8.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003173/0.6608, allocations: 2.497 MB / 423.9 MB, free: 5.898 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.6608, allocations: 12 kB / 424 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.6608, allocations: 20.5 kB / 424 MB, free: 5.867 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003172/0.6612, allocations: 148.2 kB / 424.1 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.6626, allocations: 463.9 kB / 424.6 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.6644, allocations: 3.081 MB / 427.7 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/0.6659, allocations: 115.9 kB / 427.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.666, allocations: 83.98 kB / 427.9 MB, free: 1.777 MB / 318.1 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 (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.00173/0.6677, allocations: 1.047 MB / 428.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002893/0.668, allocations: 213.4 kB / 429.1 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003403/0.6714, allocations: 2.178 MB / 431.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.6715, allocations: 14.08 kB / 431.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.998e-06/0.6715, allocations: 4 kB / 431.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.6715, allocations: 3.984 kB / 431.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008665/0.6802, allocations: 5.16 MB / 436.5 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.6802, allocations: 0 / 436.5 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009575/0.6812, allocations: 234.4 kB / 436.7 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007281/0.6819, allocations: 276.5 kB / 437 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.11e-05/0.682, allocations: 34.17 kB / 437 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006686/0.6887, allocations: 7.11 MB / 444.1 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.6887, allocations: 4 kB / 444.1 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005479/0.6942, allocations: 3.174 MB / 447.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.6955, allocations: 462.3 kB / 447.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005039/0.696, allocations: 32 kB / 447.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001363/0.6973, allocations: 71.92 kB / 447.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/0.6976, allocations: 97.58 kB / 447.9 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.944e-05/0.6977, allocations: 35.98 kB / 448 MB, free: 12.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003372/0.7011, allocations: 1.415 MB / 449.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7011, allocations: 0 / 449.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002903/0.704, allocations: 0.5596 MB / 449.9 MB, free: 10.97 MB / 350.1 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 (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%) 1,(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.0004164/0.7045, allocations: 164.3 kB / 450.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003799/0.7083, allocations: 2.08 MB / 452.2 MB, free: 8.762 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.7083, allocations: 5.859 kB / 452.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002173/0.7105, allocations: 1.38 MB / 453.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003585/0.7141, allocations: 0.5262 MB / 454.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01428/0.7284, allocations: 7.345 MB / 461.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003447/0.7319, allocations: 2.425 MB / 463.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00217/0.7341, allocations: 496.2 kB / 464.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004157/0.7345, allocations: 155.4 kB / 464.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of SimCode: time 1.694e-06/0.7345, allocations: 0 / 464.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of Templates: time 0.05994/0.7944, allocations: 26.4 MB / 490.9 MB, free: 1.992 MB / 382.1 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/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