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.001312/0.001312, allocations: 102.5 kB / 17.72 MB, free: 5.371 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.001095/0.001095, allocations: 191 kB / 18.66 MB, free: 4.441 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.376/1.376, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001269/0.001269, allocations: 55.94 kB / 328.1 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08576/0.08704, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2103/0.2974, allocations: 41.75 MB / 416.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0282/0.3257, allocations: 11.09 MB / 427.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01001/0.3357, allocations: 267.3 kB / 427.8 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0208/0.3566, allocations: 8.799 MB / 436.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01468/0.3713, allocations: 3.788 MB / 440.4 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008324/0.3796, allocations: 2.464 MB / 442.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01818/0.3978, allocations: 13.89 MB / 456.7 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03589/0.4338, allocations: 25.79 MB / 482.5 MB, free: 3.824 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01063/0.4444, allocations: 7.242 MB / 489.8 MB, free: 12.56 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01265/0.4571, allocations: 8.234 MB / 498 MB, free: 4.301 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005532/0.4627, allocations: 2.031 MB / 0.4883 GB, free: 2.27 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007737/0.4705, allocations: 2.418 MB / 0.4907 GB, free: 15.85 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006509/0.477, allocations: 4.239 MB / 0.4948 GB, free: 11.6 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01481/0.4919, allocations: 8.038 MB / 0.5027 GB, free: 3.531 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03008/0.522, allocations: 27 MB / 0.529 GB, free: 8.453 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.522, allocations: 0 / 0.529 GB, free: 8.453 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.522, allocations: 3.938 kB / 0.529 GB, free: 8.449 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007066/0.5228, allocations: 0 / 0.529 GB, free: 8.449 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.05014/0.5729, allocations: 16.03 MB / 0.5447 GB, free: 8.309 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.894e-05/0.573, allocations: 8.031 kB / 0.5447 GB, free: 8.301 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007585/0.5806, allocations: 1.843 MB / 0.5465 GB, free: 6.449 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4219/1.002, allocations: 9.192 MB / 0.5555 GB, free: 135.1 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02237/1.025, allocations: 7.709 MB / 0.563 GB, free: 132.2 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001233/1.026, allocations: 0.9645 MB / 0.5639 GB, free: 131.7 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006387/1.033, allocations: 1.28 MB / 0.5652 GB, free: 131.3 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06224/1.095, allocations: 20.52 MB / 0.5852 GB, free: 123.1 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007792/1.096, allocations: 23.62 kB / 0.5852 GB, free: 123.1 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005415/1.101, allocations: 0.5229 MB / 0.5858 GB, free: 122.7 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008168/1.102, allocations: 0.7506 MB / 0.5865 GB, free: 122.5 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04109/1.143, allocations: 19.25 MB / 0.6053 GB, free: 104.8 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1136/1.257, allocations: 64.32 MB / 0.6681 GB, free: 39.19 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03914/1.296, allocations: 57.27 MB / 0.724 GB, free: 7.059 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008146/1.304, allocations: 4.173 MB / 0.7281 GB, free: 2.863 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02738/1.332, allocations: 11.63 MB / 0.7395 GB, free: 7.227 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.982e-05/1.332, allocations: 77.34 kB / 0.7395 GB, free: 7.141 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 6.973e-06/1.332, allocations: 0 / 0.7395 GB, free: 7.141 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.2454/1.577, allocations: 17.86 MB / 0.757 GB, free: 166.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.175e-05/1.577, allocations: 92.7 kB / 0.7571 GB, free: 166.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01116/1.588, allocations: 5.682 MB / 0.7626 GB, free: 164.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000806/1.589, allocations: 92.39 kB / 0.7627 GB, free: 164.4 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004734/1.594, allocations: 6.053 MB / 0.7686 GB, free: 159.9 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001873/1.596, allocations: 1.423 MB / 0.77 GB, free: 158.8 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002657/1.599, allocations: 1.547 MB / 0.7715 GB, free: 158 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.666e-05/1.599, allocations: 302.8 kB / 0.7718 GB, free: 157.7 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004776/1.603, allocations: 3.147 MB / 0.7749 GB, free: 156.6 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006411/1.61, allocations: 6.893 MB / 0.7816 GB, free: 150.5 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01064/1.62, allocations: 10.81 MB / 0.7922 GB, free: 142.1 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001217/1.621, allocations: 35.91 kB / 0.7922 GB, free: 142.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01943/1.64, allocations: 11.03 MB / 0.803 GB, free: 137.5 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.922e-05/1.64, allocations: 61.38 kB / 0.803 GB, free: 137.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002066/1.64, allocations: 129.3 kB / 0.8031 GB, free: 137.5 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002356/1.643, allocations: 0.9823 MB / 0.8041 GB, free: 137.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006017/1.649, allocations: 1.855 MB / 0.8059 GB, free: 137 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009869/1.659, allocations: 10.25 MB / 0.8159 GB, free: 127.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006883/1.666, allocations: 450.9 kB / 0.8164 GB, free: 126.9 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001389/1.667, allocations: 429.3 kB / 0.8168 GB, free: 126.5 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.008882/1.676, allocations: 4.518 MB / 0.8212 GB, free: 122.6 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001818/1.678, allocations: 0.5707 MB / 0.8217 GB, free: 122.1 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01033/1.688, allocations: 6.697 MB / 0.8283 GB, free: 116.4 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.503e-05/1.688, allocations: 40.88 kB / 0.8283 GB, free: 116.4 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/1.688, allocations: 8 kB / 0.8283 GB, free: 116.4 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.557e-05/1.688, allocations: 25.17 kB / 0.8283 GB, free: 116.4 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03573/1.724, allocations: 16.47 MB / 0.8444 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.328e-05/1.724, allocations: 4 kB / 0.8444 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00345/1.728, allocations: 0.7845 MB / 0.8452 GB, free: 99.61 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002196/1.73, allocations: 0.7923 MB / 0.846 GB, free: 98.8 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006699/1.73, allocations: 87.97 kB / 0.8461 GB, free: 98.71 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009047/1.74, allocations: 9.327 MB / 0.8552 GB, free: 88.98 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.024e-06/1.74, allocations: 15.69 kB / 0.8552 GB, free: 88.96 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01487/1.754, allocations: 9.83 MB / 0.8648 GB, free: 79.01 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003662/1.758, allocations: 1.115 MB / 0.8659 GB, free: 77.87 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001861/1.76, allocations: 80 kB / 0.8659 GB, free: 77.79 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003769/1.764, allocations: 231.7 kB / 0.8662 GB, free: 77.57 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008429/1.765, allocations: 270.8 kB / 0.8664 GB, free: 77.3 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004436/1.765, allocations: 116 kB / 0.8665 GB, free: 77.19 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.007461/1.773, allocations: 3.754 MB / 0.8702 GB, free: 73.46 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.6e-07/1.773, allocations: 0 / 0.8702 GB, free: 73.46 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0103/1.783, allocations: 2.037 MB / 0.8722 GB, free: 71.43 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.01587/1.799, allocations: 10.56 MB / 0.8825 GB, free: 60.75 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01178/1.811, allocations: 8.243 MB / 0.8905 GB, free: 52.45 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/1.811, allocations: 0 / 0.8905 GB, free: 52.45 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005036/1.816, allocations: 3.624 MB / 0.8941 GB, free: 48.75 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008531/1.824, allocations: 1.433 MB / 0.8955 GB, free: 47.33 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3577/2.182, allocations: 72.43 MB / 0.9662 GB, free: 145.3 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01637/2.199, allocations: 7.694 MB / 0.9737 GB, free: 142.7 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.008539/2.207, allocations: 2.395 MB / 0.9761 GB, free: 142.4 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009245/2.216, allocations: 4.697 MB / 0.9807 GB, free: 138.4 MB / 0.5138 GB Notification: Performance of SimCode: time 1.833e-06/2.216, allocations: 0 / 0.9807 GB, free: 138.4 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4377/2.654, allocations: 159.8 MB / 1.137 GB, free: 126 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.66/29.32, allocations: 4.297 kB / 1.137 GB, free: 126 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