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.0008481/0.0008481, allocations: 93.09 kB / 16.65 MB, free: 6.59 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.0008905/0.0008906, allocations: 184.1 kB / 17.56 MB, free: 6.203 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.295/1.295, allocations: 223.3 MB / 241.6 MB, free: 116 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002292/0.0002292, allocations: 7.938 kB / 301.4 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0844/0.08464, allocations: 50.42 MB / 351.9 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1858/0.2705, allocations: 35.16 MB / 387 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01841/0.289, allocations: 9.848 MB / 396.9 MB, free: 2.129 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007925/0.2969, allocations: 253.2 kB / 397.1 MB, free: 2.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007561/0.3045, allocations: 2.384 MB / 399.5 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01316/0.3177, allocations: 3.542 MB / 403 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007209/0.3249, allocations: 1.994 MB / 405 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01996/0.3449, allocations: 14.3 MB / 419.3 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04643/0.3914, allocations: 24.6 MB / 443.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008997/0.4004, allocations: 5.094 MB / 449 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01061/0.4111, allocations: 6.134 MB / 455.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002969/0.4141, allocations: 0.793 MB / 455.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005196/0.4193, allocations: 1.183 MB / 457.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003663/0.423, allocations: 2.565 MB / 459.7 MB, free: 9.789 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01013/0.4331, allocations: 6.21 MB / 465.9 MB, free: 3.543 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02853/0.4617, allocations: 25.29 MB / 491.2 MB, free: 10.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.4617, allocations: 0 / 491.2 MB, free: 10.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.4617, allocations: 0 / 491.2 MB, free: 10.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006749/0.4624, allocations: 3.938 kB / 491.2 MB, free: 10.16 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.03716/0.4996, allocations: 13.24 MB / 0.4926 GB, free: 12.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.4996, allocations: 8.031 kB / 0.4926 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03605/0.5357, allocations: 6.397 MB / 0.4989 GB, free: 6.379 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01805/0.5538, allocations: 8.311 MB / 0.507 GB, free: 13.99 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001002/0.5548, allocations: 0.8993 MB / 0.5079 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003944/0.5588, allocations: 1.191 MB / 0.509 GB, free: 11.89 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.368/0.9268, allocations: 18.8 MB / 0.5274 GB, free: 108.9 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004406/0.9272, allocations: 19.98 kB / 0.5274 GB, free: 108.9 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002329/0.9296, allocations: 0.4933 MB / 0.5279 GB, free: 108.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006791/0.9303, allocations: 0.6513 MB / 0.5285 GB, free: 108.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03244/0.9627, allocations: 17.04 MB / 0.5452 GB, free: 102 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08257/1.045, allocations: 62.81 MB / 0.6065 GB, free: 47.92 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02159/1.067, allocations: 29.73 MB / 0.6356 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006079/1.073, allocations: 4.074 MB / 0.6395 GB, free: 10.63 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01562/1.089, allocations: 10.22 MB / 0.6495 GB, free: 448 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/1.089, allocations: 85.73 kB / 0.6496 GB, free: 352 kB / 430.1 MB Notification: Performance of pre-optimization done (n=408): time 5.57e-06/1.089, allocations: 0 / 0.6496 GB, free: 352 kB / 430.1 MB Notification: Performance of matching and sorting (n=418): time 0.04651/1.135, allocations: 20.45 MB / 0.6696 GB, free: 11.55 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.546e-05/1.136, allocations: 124.4 kB / 0.6697 GB, free: 11.41 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01092/1.146, allocations: 5.153 MB / 0.6747 GB, free: 6.262 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007726/1.147, allocations: 93.7 kB / 0.6748 GB, free: 6.164 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003771/1.151, allocations: 5.35 MB / 0.68 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001858/1.153, allocations: 1.439 MB / 0.6814 GB, free: 15.35 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001314/1.154, allocations: 0.508 MB / 0.6819 GB, free: 14.84 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.025e-05/1.154, allocations: 301.1 kB / 0.6822 GB, free: 14.54 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005367/1.16, allocations: 2.89 MB / 0.685 GB, free: 11.64 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007208/1.167, allocations: 5.396 MB / 0.6903 GB, free: 5.09 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2025/1.369, allocations: 8.828 MB / 0.6989 GB, free: 141.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.929e-05/1.37, allocations: 26.81 kB / 0.699 GB, free: 141.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.02017/1.39, allocations: 9.785 MB / 0.7085 GB, free: 138.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.507e-05/1.39, allocations: 40.19 kB / 0.7085 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001586/1.39, allocations: 81.5 kB / 0.7086 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00327/1.393, allocations: 1.112 MB / 0.7097 GB, free: 138.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005909/1.399, allocations: 1.449 MB / 0.7111 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01375/1.413, allocations: 12.53 MB / 0.7234 GB, free: 129.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005607/1.419, allocations: 364.7 kB / 0.7237 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/1.42, allocations: 324.8 kB / 0.724 GB, free: 129.2 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.006709/1.426, allocations: 4.222 MB / 0.7281 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001275/1.428, allocations: 0.533 MB / 0.7287 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01154/1.439, allocations: 7.184 MB / 0.7357 GB, free: 124 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006498/1.446, allocations: 4.312 MB / 0.7399 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-05/1.446, allocations: 16.27 kB / 0.7399 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.821e-05/1.446, allocations: 30.92 kB / 0.7399 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02704/1.473, allocations: 17.1 MB / 0.7566 GB, free: 112.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.692e-05/1.473, allocations: 11.31 kB / 0.7566 GB, free: 112.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00276/1.476, allocations: 0.6901 MB / 0.7573 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003039/1.479, allocations: 1.179 MB / 0.7585 GB, free: 111.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003079/1.479, allocations: 101 kB / 0.7586 GB, free: 111.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01514/1.494, allocations: 16.05 MB / 0.7742 GB, free: 94.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/1.494, allocations: 11.94 kB / 0.7742 GB, free: 94.79 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01416/1.509, allocations: 10.43 MB / 0.7844 GB, free: 84.48 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002592/1.511, allocations: 1.135 MB / 0.7855 GB, free: 83.33 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007492/1.512, allocations: 84 kB / 0.7856 GB, free: 83.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002436/1.514, allocations: 223.8 kB / 0.7858 GB, free: 83.03 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006429/1.515, allocations: 303.3 kB / 0.7861 GB, free: 82.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002451/1.515, allocations: 128 kB / 0.7863 GB, free: 82.61 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004546/1.52, allocations: 3.461 MB / 0.7896 GB, free: 79.16 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.453e-06/1.52, allocations: 4 kB / 0.7896 GB, free: 79.16 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006524/1.526, allocations: 1.963 MB / 0.7916 GB, free: 77.2 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.0006454/1.527, allocations: 291.5 kB / 0.7918 GB, free: 76.92 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01065/1.538, allocations: 7.795 MB / 0.7994 GB, free: 69.05 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/1.538, allocations: 4 kB / 0.7994 GB, free: 69.05 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005525/1.543, allocations: 4.164 MB / 0.8035 GB, free: 64.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009304/1.553, allocations: 1.351 MB / 0.8048 GB, free: 63.48 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03135/1.584, allocations: 25.82 MB / 0.83 GB, free: 37.58 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006361/1.59, allocations: 7.372 MB / 0.8372 GB, free: 30.17 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005699/1.596, allocations: 1.997 MB / 0.8392 GB, free: 28.16 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/1.597, allocations: 395.4 kB / 0.8396 GB, free: 27.78 MB / 478.1 MB Notification: Performance of SimCode: time 6.22e-07/1.597, allocations: 4 kB / 0.8396 GB, free: 27.77 MB / 478.1 MB Notification: Performance of Templates: time 0.3047/1.902, allocations: 81.28 MB / 0.919 GB, free: 128.3 MB / 494.1 MB 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/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_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