Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009603/0.0009603, allocations: 94.14 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.0009746/0.0009747, allocations: 178.4 kB / 17.2 MB, free: 5.914 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.308/1.308, allocations: 223.2 MB / 241.1 MB, free: 5.238 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002311/0.0002311, allocations: 6.125 kB / 300.7 MB, free: 5.617 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07925/0.07949, allocations: 50.42 MB / 351.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03392/0.1134, allocations: 33.01 MB / 384.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01999/0.1335, allocations: 10.54 MB / 394.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005896/0.1394, allocations: 271 kB / 395 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006929/0.1464, allocations: 2.192 MB / 397.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01154/0.1579, allocations: 3.682 MB / 400.9 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006212/0.1642, allocations: 1.826 MB / 402.7 MB, free: 7.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01631/0.1805, allocations: 10.33 MB / 413 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2022/0.3827, allocations: 19.89 MB / 432.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008194/0.391, allocations: 4.628 MB / 437.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009702/0.4007, allocations: 5.294 MB / 442.8 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003277/0.404, allocations: 0.7739 MB / 443.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004661/0.4087, allocations: 1.083 MB / 444.7 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002754/0.4115, allocations: 2.431 MB / 447.1 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004461/0.416, allocations: 2.593 MB / 449.7 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0282/0.4442, allocations: 22.88 MB / 472.6 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.4442, allocations: 0 / 472.6 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4442, allocations: 64 / 472.6 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 0.0007631/0.445, allocations: 0 / 472.6 MB, free: 0 / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.03456/0.4796, allocations: 12.84 MB / 485.4 MB, free: 7.566 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.4796, allocations: 8.031 kB / 485.4 MB, free: 7.559 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0349/0.5145, allocations: 6.129 MB / 491.6 MB, free: 1.848 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01769/0.5323, allocations: 7.932 MB / 499.5 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009039/0.5332, allocations: 0.9402 MB / 0.4887 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00397/0.5372, allocations: 1.231 MB / 0.4899 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0461/0.5833, allocations: 18.82 MB / 0.5083 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000447/0.5838, allocations: 27.41 kB / 0.5083 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003321/0.5871, allocations: 0.5045 MB / 0.5088 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006773/0.5878, allocations: 0.6621 MB / 0.5095 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03731/0.6252, allocations: 16.93 MB / 0.526 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2756/0.9008, allocations: 60.57 MB / 0.5851 GB, free: 117.1 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02138/0.9223, allocations: 33.1 MB / 0.6174 GB, free: 88.96 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01542/0.9377, allocations: 8.932 MB / 0.6262 GB, free: 88.24 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.9378, allocations: 72.73 kB / 0.6262 GB, free: 88.2 MB / 462.1 MB Notification: Performance of pre-optimization done (n=371): time 5.44e-06/0.9378, allocations: 0 / 0.6262 GB, free: 88.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=413): time 0.03071/0.9685, allocations: 17.8 MB / 0.6436 GB, free: 85.17 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.9686, allocations: 93.47 kB / 0.6437 GB, free: 85.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005892/0.9745, allocations: 5.086 MB / 0.6487 GB, free: 83.23 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003774/0.9749, allocations: 92.42 kB / 0.6488 GB, free: 83.15 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00243/0.9773, allocations: 5.614 MB / 0.6542 GB, free: 78.92 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001119/0.9785, allocations: 1.43 MB / 0.6556 GB, free: 77.83 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000329/0.9788, allocations: 142.2 kB / 0.6558 GB, free: 77.72 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002668/0.9791, allocations: 0.5765 MB / 0.6563 GB, free: 77.29 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003687/0.9828, allocations: 2.971 MB / 0.6592 GB, free: 76.17 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004532/0.9873, allocations: 5.973 MB / 0.6651 GB, free: 71.04 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005031/0.9924, allocations: 4.295 MB / 0.6693 GB, free: 69.09 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-05/0.9924, allocations: 29.84 kB / 0.6693 GB, free: 69.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=897) (initialization): time 0.01327/1.006, allocations: 10.08 MB / 0.6791 GB, free: 64.72 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.622e-05/1.006, allocations: 56.28 kB / 0.6792 GB, free: 64.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001077/1.006, allocations: 109.1 kB / 0.6793 GB, free: 64.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002107/1.008, allocations: 0.9441 MB / 0.6802 GB, free: 64.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005049/1.013, allocations: 1.637 MB / 0.6818 GB, free: 62.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00908/1.022, allocations: 9.695 MB / 0.6913 GB, free: 52.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005571/1.028, allocations: 411.3 kB / 0.6917 GB, free: 52.37 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009742/1.029, allocations: 360 kB / 0.692 GB, free: 52.02 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 463 * 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 (848): * Single equations (assignments): 843 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007302/1.036, allocations: 4.31 MB / 0.6962 GB, free: 47.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001226/1.037, allocations: 0.5441 MB / 0.6968 GB, free: 47.14 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01032/1.048, allocations: 6.752 MB / 0.7034 GB, free: 40.34 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.952e-05/1.048, allocations: 47.98 kB / 0.7034 GB, free: 40.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.475e-05/1.048, allocations: 11.83 kB / 0.7034 GB, free: 40.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.955e-05/1.048, allocations: 19.92 kB / 0.7034 GB, free: 40.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02797/1.076, allocations: 16.34 MB / 0.7194 GB, free: 23.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/1.076, allocations: 4 kB / 0.7194 GB, free: 23.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003344/1.079, allocations: 0.7884 MB / 0.7202 GB, free: 23.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002055/1.081, allocations: 0.7884 MB / 0.7209 GB, free: 22.31 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005348/1.082, allocations: 91.92 kB / 0.721 GB, free: 22.22 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008352/1.09, allocations: 8.837 MB / 0.7296 GB, free: 12.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.09, allocations: 12.19 kB / 0.7297 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01269/1.103, allocations: 10.41 MB / 0.7398 GB, free: 2.371 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002697/1.106, allocations: 1.099 MB / 0.7409 GB, free: 1.246 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009545/1.107, allocations: 75.98 kB / 0.741 GB, free: 1.172 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002606/1.109, allocations: 235.7 kB / 0.7412 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005273/1.11, allocations: 278.9 kB / 0.7415 GB, free: 0.668 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002695/1.11, allocations: 120.1 kB / 0.7416 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005564/1.116, allocations: 3.371 MB / 0.7449 GB, free: 13.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.2e-07/1.116, allocations: 0 / 0.7449 GB, free: 13.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007562/1.123, allocations: 1.94 MB / 0.7468 GB, free: 11.27 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * 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 (394): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008667/1.124, allocations: 277.2 kB / 0.747 GB, free: 10.99 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01216/1.136, allocations: 7.851 MB / 0.7547 GB, free: 3.066 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/1.136, allocations: 4.062 kB / 0.7547 GB, free: 3.062 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1846/1.321, allocations: 3.669 MB / 0.7583 GB, free: 140.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005954/1.327, allocations: 1.258 MB / 0.7595 GB, free: 140 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0361/1.363, allocations: 24.5 MB / 0.7834 GB, free: 129.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01165/1.375, allocations: 7.621 MB / 0.7909 GB, free: 128.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006277/1.381, allocations: 2.196 MB / 0.793 GB, free: 128.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/1.382, allocations: 423.2 kB / 0.7934 GB, free: 128.4 MB / 478.1 MB Notification: Performance of SimCode: time 7.52e-07/1.382, allocations: 1.469 kB / 0.7934 GB, free: 128.4 MB / 478.1 MB Notification: Performance of Templates: time 0.1014/1.484, allocations: 73.52 MB / 0.8652 GB, free: 67.66 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches