Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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 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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_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.001707/0.001707, allocations: 113.2 kB / 17.06 MB, free: 6.016 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.001774/0.001774, allocations: 191.9 kB / 18 MB, free: 5.098 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.501/1.501, allocations: 222.9 MB / 241.7 MB, free: 14.97 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 51.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3028, allocations: 49.43 MB / 400.3 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0187/0.3215, allocations: 15.18 MB / 415.4 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01114/0.3327, allocations: 5.08 MB / 420.5 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003144/0.3359, allocations: 103.6 kB / 420.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003558/0.3395, allocations: 1.059 MB / 421.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004906/0.3444, allocations: 1.274 MB / 423 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002441/0.3469, allocations: 0.8845 MB / 423.8 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005438/0.3523, allocations: 3.612 MB / 427.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004406/0.3568, allocations: 3.314 MB / 430.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002761/0.3595, allocations: 1.721 MB / 432.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003248/0.3628, allocations: 2.059 MB / 434.5 MB, free: 6.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009817/0.3638, allocations: 483.9 kB / 435 MB, free: 5.883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001926/0.3657, allocations: 0.6717 MB / 435.7 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00129/0.367, allocations: 1.141 MB / 436.8 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003159/0.3702, allocations: 2.042 MB / 438.9 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009415/0.3796, allocations: 6.291 MB / 445.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3797, allocations: 0 / 445.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3797, allocations: 0 / 445.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002022/0.3799, allocations: 0 / 445.2 MB, free: 11.7 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.0137/0.3936, allocations: 4.335 MB / 449.5 MB, free: 7.289 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/0.3937, allocations: 19.88 kB / 449.5 MB, free: 7.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006957/0.3944, allocations: 447.2 kB / 450 MB, free: 6.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002864/0.3972, allocations: 0.6349 MB / 450.6 MB, free: 6.184 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004487/0.4017, allocations: 2.29 MB / 452.9 MB, free: 3.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002038/0.402, allocations: 242.6 kB / 453.1 MB, free: 3.602 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005029/0.4025, allocations: 315.9 kB / 453.4 MB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007308/0.4098, allocations: 4.043 MB / 457.5 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.462e-05/0.4099, allocations: 11.98 kB / 457.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002919/0.4102, allocations: 128 kB / 457.6 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001594/0.4104, allocations: 146.2 kB / 457.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006081/0.4164, allocations: 3.39 MB / 461.1 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02114/0.4376, allocations: 13.18 MB / 474.3 MB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004592/0.4422, allocations: 3.98 MB / 478.3 MB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001657/0.4439, allocations: 0.9801 MB / 479.3 MB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004596/0.4485, allocations: 2.654 MB / 481.9 MB, free: 5.684 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.556e-05/0.4486, allocations: 51.5 kB / 482 MB, free: 5.625 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.535e-06/0.4486, allocations: 0 / 482 MB, free: 5.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01257/0.4612, allocations: 6.032 MB / 488 MB, free: 15.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.4613, allocations: 68.72 kB / 488.1 MB, free: 15.42 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003076/0.4644, allocations: 1.889 MB / 490 MB, free: 13.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001186/0.4645, allocations: 53.7 kB / 490 MB, free: 13.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001363/0.4659, allocations: 1.54 MB / 491.6 MB, free: 11.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005109/0.4664, allocations: 0.5074 MB / 492.1 MB, free: 11.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000544/0.4669, allocations: 331.4 kB / 492.4 MB, free: 11.03 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4671, allocations: 305.1 kB / 492.7 MB, free: 10.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/0.4684, allocations: 0.773 MB / 493.5 MB, free: 9.957 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001758/0.4702, allocations: 1.375 MB / 494.8 MB, free: 8.316 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003248/0.4734, allocations: 2.308 MB / 497.1 MB, free: 5.742 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/0.4734, allocations: 8 kB / 497.2 MB, free: 5.734 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004468/0.4779, allocations: 2.486 MB / 499.6 MB, free: 3.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.478, allocations: 12 kB / 499.6 MB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.822e-05/0.478, allocations: 24.53 kB / 499.7 MB, free: 3.195 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003779/0.4784, allocations: 118.5 kB / 499.8 MB, free: 3.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001777/0.4802, allocations: 487.2 kB / 0.4885 GB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.4815, allocations: 1.406 MB / 0.4899 GB, free: 1.047 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/0.483, allocations: 116 kB / 0.49 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/0.4832, allocations: 87.92 kB / 0.4901 GB, free: 0.8477 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00185/0.4851, allocations: 0.9773 MB / 0.4911 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004394/0.4855, allocations: 222.6 kB / 0.4913 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003493/0.489, allocations: 1.958 MB / 0.4932 GB, free: 13.66 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-05/0.4891, allocations: 20 kB / 0.4932 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.4891, allocations: 3.984 kB / 0.4932 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.4891, allocations: 3.984 kB / 0.4932 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008366/0.4975, allocations: 4.991 MB / 0.4981 GB, free: 8.535 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.4975, allocations: 4 kB / 0.4981 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001339/0.4988, allocations: 303.8 kB / 0.4984 GB, free: 8.234 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004172/0.4993, allocations: 102.5 kB / 0.4985 GB, free: 8.125 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/0.4994, allocations: 24 kB / 0.4985 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001291/0.5007, allocations: 1.382 MB / 0.4998 GB, free: 6.578 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.5007, allocations: 0 / 0.4998 GB, free: 6.578 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005007/0.5057, allocations: 3.103 MB / 0.5029 GB, free: 3.418 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.5068, allocations: 463.6 kB / 0.5033 GB, free: 2.945 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002743/0.5071, allocations: 28 kB / 0.5033 GB, free: 2.918 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009565/0.5081, allocations: 75.91 kB / 0.5034 GB, free: 2.844 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.5083, allocations: 101.1 kB / 0.5035 GB, free: 2.746 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.774e-05/0.5084, allocations: 39.98 kB / 0.5036 GB, free: 2.707 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002206/0.5106, allocations: 1.285 MB / 0.5048 GB, free: 1.398 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5106, allocations: 0 / 0.5048 GB, free: 1.398 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002048/0.5126, allocations: 0.5312 MB / 0.5053 GB, free: 0.8672 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005487/0.5181, allocations: 3.715 MB / 0.509 GB, free: 13.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003806/0.522, allocations: 2.208 MB / 0.5111 GB, free: 10.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/0.522, allocations: 8.188 kB / 0.5111 GB, free: 10.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001813/0.5238, allocations: 1.17 MB / 0.5123 GB, free: 9.594 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002799/0.5266, allocations: 0.5243 MB / 0.5128 GB, free: 9.078 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03391/0.5606, allocations: 20.06 MB / 0.5324 GB, free: 4.215 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002407/0.563, allocations: 2.263 MB / 0.5346 GB, free: 1.918 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001749/0.5648, allocations: 0.517 MB / 0.5351 GB, free: 1.398 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001652/0.5664, allocations: 1.179 MB / 0.5362 GB, free: 224 kB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5664, allocations: 0 / 0.5362 GB, free: 224 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.313/0.8795, allocations: 49.7 MB / 0.5848 GB, free: 93.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/14.66, allocations: 1.094 kB / 0.5848 GB, free: 93.3 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.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_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches