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.001057/0.001057, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001711/0.001711, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002667/0.0002666, allocations: 4 kB / 307.8 MB, free: 0.7695 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0903/0.09059, allocations: 51.53 MB / 359.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1877/0.2783, allocations: 35.78 MB / 395.1 MB, free: 448 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02202/0.3004, allocations: 10.09 MB / 405.2 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008123/0.3086, allocations: 256.6 kB / 405.4 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009961/0.3186, allocations: 2.396 MB / 407.8 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01407/0.3327, allocations: 3.553 MB / 411.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006779/0.3395, allocations: 2.057 MB / 413.4 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01848/0.358, allocations: 14.48 MB / 427.9 MB, free: 7.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0691/0.4271, allocations: 24.62 MB / 452.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0137/0.4408, allocations: 5.09 MB / 457.6 MB, free: 9.316 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0164/0.4573, allocations: 6.157 MB / 463.8 MB, free: 3.133 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003708/0.461, allocations: 0.793 MB / 464.6 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006768/0.4678, allocations: 1.207 MB / 465.8 MB, free: 1.133 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005117/0.473, allocations: 2.568 MB / 468.3 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01416/0.4872, allocations: 6.225 MB / 474.6 MB, free: 8.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03814/0.5253, allocations: 25.35 MB / 499.9 MB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.5254, allocations: 0 / 499.9 MB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.175e-06/0.5254, allocations: 0 / 499.9 MB, free: 14.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005882/0.526, allocations: 0 / 499.9 MB, free: 14.86 MB / 414.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.03863/0.5646, allocations: 13.29 MB / 0.5012 GB, free: 1.457 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.5647, allocations: 12.03 kB / 0.5012 GB, free: 1.445 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03742/0.6021, allocations: 6.439 MB / 0.5075 GB, free: 10.98 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01721/0.6194, allocations: 8.343 MB / 0.5156 GB, free: 2.562 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001201/0.6206, allocations: 0.9032 MB / 0.5165 GB, free: 1.656 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00451/0.6251, allocations: 1.195 MB / 0.5177 GB, free: 472 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.364/0.9891, allocations: 18.79 MB / 0.536 GB, free: 118.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006397/0.9898, allocations: 16.45 kB / 0.536 GB, free: 118.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002883/0.9927, allocations: 0.4973 MB / 0.5365 GB, free: 118.1 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009728/0.9937, allocations: 0.6493 MB / 0.5372 GB, free: 118.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03359/1.027, allocations: 17.03 MB / 0.5538 GB, free: 112 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08202/1.109, allocations: 64.14 MB / 0.6164 GB, free: 60.42 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02062/1.13, allocations: 30.03 MB / 0.6458 GB, free: 26.86 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005143/1.135, allocations: 4.111 MB / 0.6498 GB, free: 22.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01364/1.149, allocations: 10.51 MB / 0.66 GB, free: 12.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/1.149, allocations: 77.81 kB / 0.6601 GB, free: 12.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=408): time 4.96e-06/1.149, allocations: 0 / 0.6601 GB, free: 12.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=418): time 0.03905/1.188, allocations: 20.47 MB / 0.6801 GB, free: 7.289 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.521e-05/1.188, allocations: 116.4 kB / 0.6802 GB, free: 7.152 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007887/1.196, allocations: 5.194 MB / 0.6853 GB, free: 1.969 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006751/1.197, allocations: 89.7 kB / 0.6854 GB, free: 1.875 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003396/1.2, allocations: 5.367 MB / 0.6906 GB, free: 12.47 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001775/1.202, allocations: 1.442 MB / 0.692 GB, free: 11.04 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/1.203, allocations: 0.5041 MB / 0.6925 GB, free: 10.53 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.942e-05/1.203, allocations: 305.1 kB / 0.6928 GB, free: 10.23 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004619/1.208, allocations: 2.89 MB / 0.6956 GB, free: 7.336 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006203/1.214, allocations: 5.4 MB / 0.7009 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01222/1.226, allocations: 8.826 MB / 0.7095 GB, free: 6.777 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.489e-05/1.226, allocations: 27.94 kB / 0.7095 GB, free: 6.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.2194/1.446, allocations: 9.777 MB / 0.7191 GB, free: 151.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.747e-05/1.446, allocations: 42.23 kB / 0.7191 GB, free: 151.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001797/1.446, allocations: 84.56 kB / 0.7192 GB, free: 151.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003306/1.449, allocations: 1.113 MB / 0.7203 GB, free: 151.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005913/1.455, allocations: 1.453 MB / 0.7217 GB, free: 151.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01502/1.47, allocations: 12.53 MB / 0.734 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005746/1.476, allocations: 365.7 kB / 0.7343 GB, free: 144 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007842/1.477, allocations: 320.4 kB / 0.7346 GB, free: 143.9 MB / 494.1 MB 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 (767): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.00647/1.483, allocations: 4.241 MB / 0.7387 GB, free: 142 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001077/1.484, allocations: 0.5322 MB / 0.7393 GB, free: 142 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01101/1.495, allocations: 7.189 MB / 0.7463 GB, free: 138.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006137/1.501, allocations: 4.31 MB / 0.7505 GB, free: 137.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.76e-05/1.502, allocations: 18.81 kB / 0.7505 GB, free: 137.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.878e-05/1.502, allocations: 26.97 kB / 0.7505 GB, free: 137.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02705/1.529, allocations: 17.12 MB / 0.7673 GB, free: 130 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.728e-05/1.529, allocations: 5.797 kB / 0.7673 GB, free: 130 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002953/1.532, allocations: 0.683 MB / 0.7679 GB, free: 129.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003122/1.535, allocations: 1.18 MB / 0.7691 GB, free: 129.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005379/1.535, allocations: 98.09 kB / 0.7692 GB, free: 129.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01572/1.551, allocations: 16.05 MB / 0.7849 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/1.551, allocations: 8 kB / 0.7849 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01608/1.567, allocations: 10.44 MB / 0.7951 GB, free: 106.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002732/1.57, allocations: 1.137 MB / 0.7962 GB, free: 105.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001129/1.571, allocations: 84 kB / 0.7963 GB, free: 105.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003071/1.574, allocations: 219.8 kB / 0.7965 GB, free: 105 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000754/1.575, allocations: 303.4 kB / 0.7968 GB, free: 104.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002743/1.575, allocations: 124.6 kB / 0.7969 GB, free: 104.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005897/1.581, allocations: 3.485 MB / 0.8003 GB, free: 101.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/1.581, allocations: 4 kB / 0.8003 GB, free: 101.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007635/1.589, allocations: 1.962 MB / 0.8022 GB, free: 99.13 MB / 494.1 MB 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 (356): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,48.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.0009752/1.59, allocations: 291.7 kB / 0.8025 GB, free: 98.86 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01139/1.601, allocations: 7.798 MB / 0.8101 GB, free: 90.99 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/1.601, allocations: 1 kB / 0.8101 GB, free: 90.99 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006398/1.608, allocations: 4.162 MB / 0.8142 GB, free: 86.76 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01099/1.619, allocations: 1.361 MB / 0.8155 GB, free: 85.43 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03529/1.654, allocations: 25.89 MB / 0.8408 GB, free: 59.46 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007825/1.662, allocations: 7.379 MB / 0.848 GB, free: 52.04 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005942/1.668, allocations: 2.001 MB / 0.8499 GB, free: 50.04 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/1.669, allocations: 403.4 kB / 0.8503 GB, free: 49.64 MB / 494.1 MB Notification: Performance of SimCode: time 1.433e-06/1.669, allocations: 4 kB / 0.8503 GB, free: 49.64 MB / 494.1 MB Notification: Performance of Templates: time 0.3523/2.021, allocations: 81.55 MB / 0.9299 GB, free: 127.2 MB / 494.1 MB 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/jenkins/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/jenkins/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