Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001202/0.001202, allocations: 114.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 214 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 59.91 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2423, allocations: 50.54 MB / 410 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03637/0.2787, allocations: 37.89 MB / 447.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02172/0.3005, allocations: 10.3 MB / 458.2 MB, free: 1.199 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007296/0.3078, allocations: 275.1 kB / 458.4 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02064/0.3285, allocations: 9.101 MB / 467.5 MB, free: 7.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01353/0.3421, allocations: 3.922 MB / 471.5 MB, free: 3.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00802/0.3501, allocations: 2.427 MB / 473.9 MB, free: 1.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01863/0.3688, allocations: 14.22 MB / 488.1 MB, free: 3.184 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04435/0.4132, allocations: 25.63 MB / 0.5017 GB, free: 9.383 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01255/0.4258, allocations: 7.231 MB / 0.5087 GB, free: 2.133 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01448/0.4403, allocations: 8.047 MB / 0.5166 GB, free: 10.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006461/0.4468, allocations: 2.023 MB / 0.5186 GB, free: 8.031 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008375/0.4552, allocations: 2.445 MB / 0.521 GB, free: 5.59 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006988/0.4623, allocations: 4.025 MB / 0.5249 GB, free: 1.555 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01534/0.4776, allocations: 7.829 MB / 0.5325 GB, free: 9.688 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4889/0.9666, allocations: 26.98 MB / 0.5589 GB, free: 57.03 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.9667, allocations: 0 / 0.5589 GB, free: 57.03 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.9667, allocations: 1.531 kB / 0.5589 GB, free: 57.03 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007681/0.9675, allocations: 0 / 0.5589 GB, free: 57.03 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04808/1.016, allocations: 15.89 MB / 0.5744 GB, free: 50.14 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/1.016, allocations: 10 kB / 0.5744 GB, free: 50.14 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03715/1.053, allocations: 6.456 MB / 0.5807 GB, free: 47.66 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01839/1.071, allocations: 8.598 MB / 0.5891 GB, free: 43.16 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008317/1.072, allocations: 0.9022 MB / 0.59 GB, free: 42.75 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005205/1.077, allocations: 1.188 MB / 0.5912 GB, free: 42.36 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04629/1.124, allocations: 18.77 MB / 0.6095 GB, free: 24.54 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005407/1.124, allocations: 19.8 kB / 0.6095 GB, free: 24.52 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004078/1.128, allocations: 0.4899 MB / 0.61 GB, free: 24.04 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005495/1.129, allocations: 0.6537 MB / 0.6106 GB, free: 23.39 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03328/1.162, allocations: 17 MB / 0.6272 GB, free: 6.387 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1164/1.279, allocations: 63.19 MB / 0.6889 GB, free: 6.426 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03035/1.309, allocations: 30 MB / 0.7182 GB, free: 4.914 MB / 0.5451 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007869/1.317, allocations: 4.028 MB / 0.7222 GB, free: 0.8867 MB / 0.5451 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02307/1.34, allocations: 10.37 MB / 0.7323 GB, free: 6.527 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.049e-05/1.34, allocations: 73.8 kB / 0.7324 GB, free: 6.445 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=402): time 5.971e-06/1.34, allocations: 0 / 0.7324 GB, free: 6.445 MB / 0.5607 GB Notification: Performance of matching and sorting (n=412): time 0.05317/1.393, allocations: 20.13 MB / 0.752 GB, free: 2.051 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.27e-05/1.393, allocations: 124.3 kB / 0.7521 GB, free: 1.91 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2573/1.651, allocations: 5.188 MB / 0.7572 GB, free: 216.8 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0008299/1.652, allocations: 94.7 kB / 0.7573 GB, free: 216.8 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.002882/1.655, allocations: 5.368 MB / 0.7625 GB, free: 215.1 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001529/1.656, allocations: 1.425 MB / 0.7639 GB, free: 214 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001897/1.658, allocations: 1.239 MB / 0.7651 GB, free: 213.4 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.098e-05/1.658, allocations: 303.9 kB / 0.7654 GB, free: 213.1 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003793/1.662, allocations: 2.849 MB / 0.7682 GB, free: 212 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00558/1.667, allocations: 5.346 MB / 0.7734 GB, free: 207.7 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01018/1.678, allocations: 8.731 MB / 0.782 GB, free: 201.5 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.916e-05/1.678, allocations: 23.5 kB / 0.782 GB, free: 201.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01763/1.695, allocations: 9.683 MB / 0.7914 GB, free: 197.5 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001367/1.696, allocations: 41.12 kB / 0.7915 GB, free: 197.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001649/1.696, allocations: 82.25 kB / 0.7916 GB, free: 197.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003146/1.699, allocations: 1.119 MB / 0.7927 GB, free: 197.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005891/1.705, allocations: 1.45 MB / 0.7941 GB, free: 196.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01521/1.72, allocations: 13.47 MB / 0.8072 GB, free: 183.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007019/1.727, allocations: 357 kB / 0.8076 GB, free: 183.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001752/1.729, allocations: 323.4 kB / 0.8079 GB, free: 183.3 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008829/1.738, allocations: 4.241 MB / 0.812 GB, free: 179.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001938/1.74, allocations: 0.5283 MB / 0.8125 GB, free: 179.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01349/1.753, allocations: 7.085 MB / 0.8194 GB, free: 173.1 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006574/1.76, allocations: 4.236 MB / 0.8236 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.088e-05/1.76, allocations: 16 kB / 0.8236 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.878e-05/1.76, allocations: 19.69 kB / 0.8236 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03175/1.792, allocations: 16.96 MB / 0.8402 GB, free: 153.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.047e-05/1.792, allocations: 5.75 kB / 0.8402 GB, free: 153.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002987/1.795, allocations: 0.6871 MB / 0.8409 GB, free: 152.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002922/1.798, allocations: 1.186 MB / 0.842 GB, free: 151.5 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006865/1.798, allocations: 95.97 kB / 0.8421 GB, free: 151.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01703/1.816, allocations: 17.39 MB / 0.8591 GB, free: 133.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/1.816, allocations: 8.016 kB / 0.8591 GB, free: 133.2 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01681/1.832, allocations: 10.29 MB / 0.8691 GB, free: 122.7 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003032/1.835, allocations: 1.115 MB / 0.8702 GB, free: 121.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00178/1.837, allocations: 84 kB / 0.8703 GB, free: 121.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003744/1.841, allocations: 207.8 kB / 0.8705 GB, free: 121.3 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001072/1.842, allocations: 303.4 kB / 0.8708 GB, free: 121 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005939/1.843, allocations: 125.3 kB / 0.8709 GB, free: 120.9 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006399/1.849, allocations: 3.481 MB / 0.8743 GB, free: 117.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 4.41e-07/1.849, allocations: 4 kB / 0.8743 GB, free: 117.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008528/1.858, allocations: 1.96 MB / 0.8762 GB, free: 115.4 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (10,46,52.0%), (1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001225/1.859, allocations: 276.8 kB / 0.8765 GB, free: 115.2 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01239/1.871, allocations: 7.7 MB / 0.884 GB, free: 107.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/1.871, allocations: 4 kB / 0.884 GB, free: 107.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006611/1.878, allocations: 4.089 MB / 0.888 GB, free: 103.2 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00985/1.888, allocations: 1.441 MB / 0.8894 GB, free: 101.8 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04048/1.928, allocations: 20.02 MB / 0.909 GB, free: 81.74 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01248/1.941, allocations: 7.136 MB / 0.9159 GB, free: 74.57 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00252/1.944, allocations: 467.3 kB / 0.9164 GB, free: 74.11 MB / 0.5763 GB Notification: Performance of SimCode: time 1.703e-06/1.944, allocations: 3.938 kB / 0.9164 GB, free: 74.11 MB / 0.5763 GB Notification: Performance of Templates: time 1.254/3.198, allocations: 0.4957 GB / 1.412 GB, free: 189.5 MB / 0.5763 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches