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_Mains.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_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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001585/0.001586, allocations: 104.9 kB / 17.16 MB, free: 6.082 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.001669/0.001669, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.546/1.546, allocations: 222.9 MB / 241.8 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 47.27 kB / 300.6 MB, free: 6.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1202, allocations: 49.45 MB / 350.1 MB, free: 4.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2736/0.3939, allocations: 36.59 MB / 386.7 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0261/0.42, allocations: 9.921 MB / 396.6 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0118/0.4319, allocations: 262 kB / 396.9 MB, free: 1.203 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02276/0.4547, allocations: 8.526 MB / 405.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01674/0.4714, allocations: 3.568 MB / 408.9 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009301/0.4808, allocations: 2.204 MB / 411.1 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02415/0.5049, allocations: 14.31 MB / 425.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04645/0.5514, allocations: 20.92 MB / 446.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01291/0.5644, allocations: 6.121 MB / 452.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01402/0.5785, allocations: 7.473 MB / 460 MB, free: 8.391 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006152/0.5847, allocations: 1.297 MB / 461.3 MB, free: 7.094 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009008/0.5937, allocations: 1.687 MB / 462.9 MB, free: 5.406 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006999/0.6007, allocations: 3.283 MB / 466.2 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01773/0.6185, allocations: 7.04 MB / 473.3 MB, free: 11.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03302/0.6516, allocations: 23.33 MB / 496.6 MB, free: 3.656 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.6516, allocations: 0 / 496.6 MB, free: 3.656 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6517, allocations: 0 / 496.6 MB, free: 3.656 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008971/0.6526, allocations: 0 / 496.6 MB, free: 3.656 MB / 398.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.05609/0.7087, allocations: 15.89 MB / 0.5005 GB, free: 3.641 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/0.7087, allocations: 8.031 kB / 0.5005 GB, free: 3.633 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0382/0.747, allocations: 6.377 MB / 0.5067 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02098/0.768, allocations: 8.276 MB / 0.5148 GB, free: 4.879 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001166/0.7692, allocations: 0.9071 MB / 0.5157 GB, free: 3.969 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005286/0.7745, allocations: 1.203 MB / 0.5169 GB, free: 2.766 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4202/1.195, allocations: 18.78 MB / 0.5352 GB, free: 108.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005017/1.195, allocations: 18.52 kB / 0.5352 GB, free: 108.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003036/1.198, allocations: 0.4883 MB / 0.5357 GB, free: 108.1 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007109/1.199, allocations: 0.649 MB / 0.5363 GB, free: 108 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03515/1.234, allocations: 17.02 MB / 0.553 GB, free: 100.7 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1032/1.337, allocations: 62.62 MB / 0.6141 GB, free: 39.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02189/1.359, allocations: 29.75 MB / 0.6432 GB, free: 6.512 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006016/1.365, allocations: 4.059 MB / 0.6471 GB, free: 2.445 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02478/1.39, allocations: 10.19 MB / 0.6571 GB, free: 8.277 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.681e-05/1.39, allocations: 81.75 kB / 0.6572 GB, free: 8.188 MB / 446.1 MB Notification: Performance of pre-optimization done (n=408): time 6.643e-06/1.39, allocations: 0 / 0.6572 GB, free: 8.188 MB / 446.1 MB Notification: Performance of matching and sorting (n=418): time 0.05105/1.441, allocations: 20.36 MB / 0.677 GB, free: 3.492 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.65e-05/1.442, allocations: 120.4 kB / 0.6772 GB, free: 3.352 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0105/1.452, allocations: 5.164 MB / 0.6822 GB, free: 14.2 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007461/1.453, allocations: 93.7 kB / 0.6823 GB, free: 14.1 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003948/1.457, allocations: 5.351 MB / 0.6875 GB, free: 8.715 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00187/1.459, allocations: 1.442 MB / 0.6889 GB, free: 7.285 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003657/1.462, allocations: 1.251 MB / 0.6901 GB, free: 6.023 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.726e-05/1.462, allocations: 301.1 kB / 0.6904 GB, free: 5.727 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005117/1.468, allocations: 2.882 MB / 0.6932 GB, free: 2.84 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2486/1.716, allocations: 5.384 MB / 0.6985 GB, free: 142.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01218/1.728, allocations: 8.808 MB / 0.7071 GB, free: 137.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001785/1.729, allocations: 28.47 kB / 0.7071 GB, free: 137.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.02048/1.749, allocations: 9.76 MB / 0.7167 GB, free: 133.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/1.749, allocations: 43.22 kB / 0.7167 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001505/1.749, allocations: 79.86 kB / 0.7168 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003302/1.753, allocations: 1.116 MB / 0.7179 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006144/1.759, allocations: 1.448 MB / 0.7193 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0139/1.773, allocations: 12.52 MB / 0.7315 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005743/1.779, allocations: 350.5 kB / 0.7318 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001412/1.78, allocations: 328.1 kB / 0.7322 GB, free: 124.6 MB / 478.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.00749/1.788, allocations: 4.226 MB / 0.7363 GB, free: 122.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001432/1.789, allocations: 0.5329 MB / 0.7368 GB, free: 122.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01163/1.801, allocations: 7.164 MB / 0.7438 GB, free: 119.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005883/1.807, allocations: 4.305 MB / 0.748 GB, free: 117.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.002e-05/1.807, allocations: 15.88 kB / 0.748 GB, free: 117.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-05/1.807, allocations: 26.39 kB / 0.748 GB, free: 117.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02699/1.834, allocations: 17.09 MB / 0.7647 GB, free: 107.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-05/1.834, allocations: 4 kB / 0.7647 GB, free: 107.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002968/1.837, allocations: 0.6869 MB / 0.7654 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0031/1.84, allocations: 1.182 MB / 0.7666 GB, free: 106.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005819/1.841, allocations: 100.9 kB / 0.7667 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0145/1.855, allocations: 16.02 MB / 0.7823 GB, free: 89.62 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.748e-06/1.855, allocations: 16 kB / 0.7823 GB, free: 89.61 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01425/1.869, allocations: 10.4 MB / 0.7925 GB, free: 79.33 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002648/1.872, allocations: 1.119 MB / 0.7936 GB, free: 78.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001025/1.873, allocations: 87.98 kB / 0.7936 GB, free: 78.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002491/1.876, allocations: 208 kB / 0.7938 GB, free: 77.91 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006981/1.876, allocations: 307.3 kB / 0.7941 GB, free: 77.61 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002601/1.877, allocations: 128 kB / 0.7943 GB, free: 77.48 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005107/1.882, allocations: 3.465 MB / 0.7976 GB, free: 74.04 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.6e-07/1.882, allocations: 0 / 0.7976 GB, free: 74.04 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007581/1.889, allocations: 1.961 MB / 0.7996 GB, free: 72.08 MB / 478.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.0008112/1.89, allocations: 291.3 kB / 0.7998 GB, free: 71.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01109/1.901, allocations: 7.781 MB / 0.8074 GB, free: 63.95 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/1.901, allocations: 5.938 kB / 0.8074 GB, free: 63.94 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006106/1.907, allocations: 4.138 MB / 0.8115 GB, free: 59.72 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007097/1.914, allocations: 1.343 MB / 0.8128 GB, free: 58.41 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03861/1.953, allocations: 25.33 MB / 0.8375 GB, free: 33 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01114/1.964, allocations: 7.132 MB / 0.8445 GB, free: 25.83 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002018/1.966, allocations: 459.3 kB / 0.8449 GB, free: 25.38 MB / 478.1 MB Notification: Performance of SimCode: time 8.02e-07/1.966, allocations: 0 / 0.8449 GB, free: 25.38 MB / 478.1 MB Notification: Performance of Templates: time 1.11/3.077, allocations: 0.494 GB / 1.339 GB, free: 89.38 MB / 0.4982 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches