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.001701/0.001701, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.001924/0.001924, allocations: 191.9 kB / 18.51 MB, free: 4.504 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.933/1.933, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002119/0.002119, allocations: 56.14 kB / 280.8 MB, free: 3.047 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1312, allocations: 46.62 MB / 327.4 MB, free: 4.352 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.07162/0.2028, allocations: 41.76 MB / 369.2 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.3423/0.5452, allocations: 11.07 MB / 380.2 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01435/0.5596, allocations: 269.6 kB / 380.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03085/0.5906, allocations: 8.783 MB / 389.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02128/0.6119, allocations: 3.795 MB / 393.1 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01343/0.6254, allocations: 2.455 MB / 395.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02982/0.6552, allocations: 13.78 MB / 409.3 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06403/0.7193, allocations: 25.88 MB / 435.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02016/0.7395, allocations: 7.178 MB / 442.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02257/0.7622, allocations: 8.268 MB / 450.7 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009603/0.7719, allocations: 2.031 MB / 452.7 MB, free: 380 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01531/0.7873, allocations: 2.434 MB / 455.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01199/0.7993, allocations: 4.234 MB / 459.4 MB, free: 9.777 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02595/0.8253, allocations: 8.043 MB / 467.4 MB, free: 1.766 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05111/0.8765, allocations: 26.81 MB / 494.2 MB, free: 7.438 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.303e-05/0.8766, allocations: 7.938 kB / 494.2 MB, free: 7.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.8766, allocations: 0 / 494.2 MB, free: 7.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0009323/0.8776, allocations: 0 / 494.2 MB, free: 7.43 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.08172/0.9593, allocations: 16.05 MB / 0.4983 GB, free: 7.371 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.781e-05/0.9594, allocations: 12.03 kB / 0.4983 GB, free: 7.359 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01007/0.9695, allocations: 1.84 MB / 0.5001 GB, free: 5.523 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09376/1.063, allocations: 9.175 MB / 0.5091 GB, free: 12.43 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03036/1.094, allocations: 7.685 MB / 0.5166 GB, free: 4.73 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002215/1.096, allocations: 0.9719 MB / 0.5175 GB, free: 3.77 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007896/1.104, allocations: 1.28 MB / 0.5188 GB, free: 2.504 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6367/1.741, allocations: 20.51 MB / 0.5388 GB, free: 133.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001215/1.742, allocations: 20.83 kB / 0.5388 GB, free: 133.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00669/1.749, allocations: 0.5245 MB / 0.5393 GB, free: 133.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002499/1.751, allocations: 0.7452 MB / 0.5401 GB, free: 133.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07537/1.827, allocations: 19.24 MB / 0.5589 GB, free: 126.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1823/2.009, allocations: 65.05 MB / 0.6224 GB, free: 75.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05355/2.063, allocations: 57.29 MB / 0.6783 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01127/2.074, allocations: 4.193 MB / 0.6824 GB, free: 7.562 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0404/2.115, allocations: 11.67 MB / 0.6938 GB, free: 11.89 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001372/2.115, allocations: 69.41 kB / 0.6939 GB, free: 11.81 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 1.298e-05/2.115, allocations: 0 / 0.6939 GB, free: 11.81 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.07823/2.193, allocations: 17.87 MB / 0.7113 GB, free: 9.84 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/2.193, allocations: 90.58 kB / 0.7114 GB, free: 9.738 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0234/2.217, allocations: 5.685 MB / 0.717 GB, free: 4.078 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001327/2.218, allocations: 93.7 kB / 0.7171 GB, free: 3.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.3777/2.596, allocations: 6.05 MB / 0.723 GB, free: 160.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002816/2.599, allocations: 1.418 MB / 0.7244 GB, free: 159.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00868/2.607, allocations: 1.541 MB / 0.7259 GB, free: 159.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.128e-05/2.607, allocations: 303 kB / 0.7262 GB, free: 158.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00999/2.617, allocations: 3.143 MB / 0.7292 GB, free: 158.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01453/2.632, allocations: 6.9 MB / 0.736 GB, free: 152.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0227/2.655, allocations: 10.81 MB / 0.7465 GB, free: 144 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005333/2.655, allocations: 39.41 kB / 0.7466 GB, free: 144 MB / 478.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.03584/2.691, allocations: 11.03 MB / 0.7573 GB, free: 139.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004287/2.692, allocations: 63.27 kB / 0.7574 GB, free: 139.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004689/2.692, allocations: 128.6 kB / 0.7575 GB, free: 139.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004009/2.696, allocations: 0.9884 MB / 0.7585 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01114/2.708, allocations: 1.863 MB / 0.7603 GB, free: 139 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0173/2.725, allocations: 10.26 MB / 0.7703 GB, free: 132 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01111/2.736, allocations: 453.8 kB / 0.7707 GB, free: 131.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002159/2.738, allocations: 427.9 kB / 0.7712 GB, free: 131.8 MB / 478.1 MB 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.01497/2.753, allocations: 4.509 MB / 0.7756 GB, free: 129.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002982/2.756, allocations: 0.5715 MB / 0.7761 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02007/2.776, allocations: 6.713 MB / 0.7827 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.645e-05/2.777, allocations: 40 kB / 0.7827 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.452e-05/2.777, allocations: 8 kB / 0.7827 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001006/2.777, allocations: 25.27 kB / 0.7827 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0507/2.827, allocations: 16.49 MB / 0.7988 GB, free: 111.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.485e-05/2.828, allocations: 5.641 kB / 0.7989 GB, free: 111.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005439/2.833, allocations: 0.7767 MB / 0.7996 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003407/2.836, allocations: 0.804 MB / 0.8004 GB, free: 110.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009676/2.837, allocations: 91.97 kB / 0.8005 GB, free: 110 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01334/2.851, allocations: 9.338 MB / 0.8096 GB, free: 100.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/2.851, allocations: 4 kB / 0.8096 GB, free: 100.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02728/2.878, allocations: 9.823 MB / 0.8192 GB, free: 90.35 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005382/2.884, allocations: 1.115 MB / 0.8203 GB, free: 89.21 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002936/2.887, allocations: 72 kB / 0.8204 GB, free: 89.14 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006581/2.893, allocations: 231.7 kB / 0.8206 GB, free: 88.91 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001398/2.895, allocations: 270.8 kB / 0.8208 GB, free: 88.65 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008851/2.896, allocations: 127 kB / 0.821 GB, free: 88.53 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01241/2.908, allocations: 3.746 MB / 0.8246 GB, free: 84.81 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.052e-06/2.908, allocations: 0 / 0.8246 GB, free: 84.81 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01798/2.926, allocations: 2.041 MB / 0.8266 GB, free: 82.77 MB / 478.1 MB 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.03012/2.956, allocations: 10.55 MB / 0.8369 GB, free: 72.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05184/3.008, allocations: 13.87 MB / 0.8505 GB, free: 58.21 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.526e-05/3.008, allocations: 8.062 kB / 0.8505 GB, free: 58.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01012/3.018, allocations: 3.617 MB / 0.854 GB, free: 54.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01407/3.033, allocations: 1.41 MB / 0.8554 GB, free: 53.11 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.584/3.617, allocations: 92.21 MB / 0.9454 GB, free: 117.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02363/3.64, allocations: 7.7 MB / 0.9529 GB, free: 113.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0151/3.656, allocations: 2.4 MB / 0.9553 GB, free: 111.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01287/3.668, allocations: 4.699 MB / 0.9599 GB, free: 106.4 MB / 478.1 MB Notification: Performance of SimCode: time 2.134e-06/3.669, allocations: 0 / 0.9599 GB, free: 106.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7317/4.4, allocations: 162.2 MB / 1.118 GB, free: 112.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.47/24.87, allocations: 12.09 kB / 1.118 GB, free: 112.1 MB / 478.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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