Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.001502, allocations: 110.5 kB / 17.73 MB, free: 5.363 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.001711/0.001711, allocations: 191 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.37/1.37, allocations: 205.1 MB / 224.5 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 51.92 kB / 328.1 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08856/0.08988, allocations: 46.62 MB / 374.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2322/0.3221, allocations: 41.76 MB / 416.4 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02985/0.352, allocations: 11.08 MB / 427.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01229/0.3643, allocations: 267.7 kB / 427.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02281/0.3873, allocations: 8.794 MB / 436.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01594/0.4032, allocations: 3.792 MB / 440.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009063/0.4123, allocations: 2.46 MB / 442.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02036/0.4327, allocations: 13.89 MB / 456.7 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0474/0.4801, allocations: 25.8 MB / 482.5 MB, free: 3.688 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01322/0.4934, allocations: 7.234 MB / 489.8 MB, free: 12.43 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01383/0.5073, allocations: 8.234 MB / 498 MB, free: 4.172 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005765/0.5131, allocations: 2.035 MB / 0.4883 GB, free: 2.137 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007785/0.5209, allocations: 2.425 MB / 0.4907 GB, free: 15.71 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007229/0.5282, allocations: 4.232 MB / 0.4948 GB, free: 11.47 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01965/0.5479, allocations: 8.038 MB / 0.5027 GB, free: 3.398 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0369/0.5848, allocations: 27.01 MB / 0.529 GB, free: 8.312 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.5849, allocations: 0 / 0.529 GB, free: 8.312 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5849, allocations: 0 / 0.529 GB, free: 8.312 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009187/0.5858, allocations: 0 / 0.529 GB, free: 8.312 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.0508/0.6366, allocations: 16.02 MB / 0.5447 GB, free: 8.172 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.6367, allocations: 12.03 kB / 0.5447 GB, free: 8.16 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006671/0.6434, allocations: 1.843 MB / 0.5465 GB, free: 6.309 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4382/1.082, allocations: 9.192 MB / 0.5555 GB, free: 134.7 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01999/1.102, allocations: 7.697 MB / 0.563 GB, free: 132.1 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001265/1.103, allocations: 0.9689 MB / 0.5639 GB, free: 131.6 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006488/1.11, allocations: 1.279 MB / 0.5652 GB, free: 131.2 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05939/1.169, allocations: 20.51 MB / 0.5852 GB, free: 122.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000683/1.17, allocations: 31.45 kB / 0.5852 GB, free: 122.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005036/1.175, allocations: 0.5287 MB / 0.5858 GB, free: 122.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006672/1.175, allocations: 0.7499 MB / 0.5865 GB, free: 122.4 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04015/1.216, allocations: 19.24 MB / 0.6053 GB, free: 104.6 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1133/1.329, allocations: 64.32 MB / 0.6681 GB, free: 38.92 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03773/1.367, allocations: 57.28 MB / 0.724 GB, free: 6.785 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008034/1.375, allocations: 4.169 MB / 0.7281 GB, free: 2.598 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02566/1.401, allocations: 11.63 MB / 0.7395 GB, free: 6.957 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.759e-05/1.401, allocations: 69.41 kB / 0.7395 GB, free: 6.879 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 5.079e-06/1.401, allocations: 0 / 0.7395 GB, free: 6.879 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.2733/1.674, allocations: 17.86 MB / 0.757 GB, free: 166.5 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.031e-05/1.674, allocations: 94.03 kB / 0.7571 GB, free: 166.4 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01484/1.689, allocations: 5.686 MB / 0.7626 GB, free: 164.4 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008941/1.69, allocations: 92.05 kB / 0.7627 GB, free: 164.3 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00569/1.696, allocations: 6.056 MB / 0.7686 GB, free: 159.7 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002431/1.698, allocations: 1.423 MB / 0.77 GB, free: 158.6 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004794/1.703, allocations: 1.54 MB / 0.7715 GB, free: 157.9 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 7.492e-05/1.703, allocations: 301.1 kB / 0.7718 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006685/1.71, allocations: 3.148 MB / 0.7749 GB, free: 156.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008749/1.719, allocations: 6.894 MB / 0.7816 GB, free: 150.3 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01187/1.73, allocations: 10.81 MB / 0.7922 GB, free: 141.9 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001374/1.731, allocations: 38.84 kB / 0.7922 GB, free: 141.9 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02056/1.751, allocations: 11.03 MB / 0.803 GB, free: 137.4 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/1.751, allocations: 59.5 kB / 0.803 GB, free: 137.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001946/1.752, allocations: 131.5 kB / 0.8031 GB, free: 137.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002555/1.754, allocations: 0.9841 MB / 0.8041 GB, free: 137.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006548/1.761, allocations: 1.846 MB / 0.8059 GB, free: 136.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/1.771, allocations: 10.25 MB / 0.8159 GB, free: 127 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00754/1.779, allocations: 458.7 kB / 0.8164 GB, free: 126.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001668/1.781, allocations: 429.6 kB / 0.8168 GB, free: 126.2 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01029/1.791, allocations: 4.512 MB / 0.8212 GB, free: 122.3 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00209/1.793, allocations: 0.5706 MB / 0.8217 GB, free: 121.7 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01262/1.806, allocations: 6.697 MB / 0.8283 GB, free: 116.1 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.22e-05/1.806, allocations: 47.5 kB / 0.8283 GB, free: 116 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.269e-05/1.806, allocations: 8 kB / 0.8283 GB, free: 116 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-05/1.806, allocations: 22.17 kB / 0.8283 GB, free: 116 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03568/1.842, allocations: 16.47 MB / 0.8444 GB, free: 100.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.12e-05/1.842, allocations: 4 kB / 0.8444 GB, free: 100.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003609/1.845, allocations: 0.7767 MB / 0.8452 GB, free: 99.29 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002165/1.847, allocations: 0.7962 MB / 0.846 GB, free: 98.47 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006768/1.848, allocations: 91.97 kB / 0.8461 GB, free: 98.38 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009265/1.857, allocations: 9.331 MB / 0.8552 GB, free: 88.64 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/1.858, allocations: 7.812 kB / 0.8552 GB, free: 88.64 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01552/1.873, allocations: 9.833 MB / 0.8648 GB, free: 78.68 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003474/1.877, allocations: 1.115 MB / 0.8659 GB, free: 77.54 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001776/1.878, allocations: 75.94 kB / 0.8659 GB, free: 77.46 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003767/1.882, allocations: 231.7 kB / 0.8662 GB, free: 77.24 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009822/1.883, allocations: 270.8 kB / 0.8664 GB, free: 76.97 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003735/1.884, allocations: 120 kB / 0.8665 GB, free: 76.86 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006216/1.89, allocations: 3.75 MB / 0.8702 GB, free: 73.14 MB / 0.5138 GB Notification: Performance of sort global known variables: time 8.02e-07/1.89, allocations: 0 / 0.8702 GB, free: 73.14 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009715/1.9, allocations: 2.041 MB / 0.8722 GB, free: 71.1 MB / 0.5138 GB 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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01426/1.914, allocations: 10.55 MB / 0.8825 GB, free: 60.43 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01151/1.925, allocations: 8.245 MB / 0.8905 GB, free: 52.12 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.827e-05/1.925, allocations: 4 kB / 0.8906 GB, free: 52.12 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005357/1.931, allocations: 3.616 MB / 0.8941 GB, free: 48.43 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007962/1.939, allocations: 1.437 MB / 0.8955 GB, free: 47.01 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3774/2.316, allocations: 72.42 MB / 0.9662 GB, free: 145.2 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01427/2.331, allocations: 7.694 MB / 0.9737 GB, free: 142.5 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.00781/2.338, allocations: 2.393 MB / 0.9761 GB, free: 142.3 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008689/2.347, allocations: 4.699 MB / 0.9807 GB, free: 138.3 MB / 0.5138 GB Notification: Performance of SimCode: time 2.144e-06/2.347, allocations: 0 / 0.9807 GB, free: 138.3 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4662/2.813, allocations: 159.8 MB / 1.137 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.82/25.63, allocations: 2.75 kB / 1.137 GB, free: 125.1 MB / 0.5294 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches