Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001464/0.001464, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002667/0.002667, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.271, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01705/0.2881, allocations: 15.81 MB / 424.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.2982, allocations: 5.334 MB / 429.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002914/0.3012, allocations: 103.6 kB / 430 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003089/0.3043, allocations: 1.141 MB / 431.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00405/0.3084, allocations: 1.282 MB / 432.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002498/0.3109, allocations: 0.9245 MB / 433.4 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005183/0.3161, allocations: 3.643 MB / 437 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004952/0.3211, allocations: 3.314 MB / 440.3 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002594/0.3237, allocations: 1.745 MB / 442.1 MB, free: 64 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003494/0.3272, allocations: 2.125 MB / 444.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001148/0.3283, allocations: 480 kB / 444.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002533/0.3309, allocations: 0.6989 MB / 445.4 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001908/0.3328, allocations: 1.149 MB / 446.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003093/0.3359, allocations: 2.046 MB / 448.6 MB, free: 9.555 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006643/0.3426, allocations: 6.326 MB / 454.9 MB, free: 3.207 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3426, allocations: 4 kB / 454.9 MB, free: 3.203 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3426, allocations: 0 / 454.9 MB, free: 3.203 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000108/0.3427, allocations: 0 / 454.9 MB, free: 3.203 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.009217/0.3519, allocations: 4.369 MB / 459.3 MB, free: 14.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.352, allocations: 8.031 kB / 459.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005017/0.3525, allocations: 447.3 kB / 459.7 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002761/0.3553, allocations: 0.6466 MB / 460.3 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004155/0.3594, allocations: 2.305 MB / 462.6 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002018/0.3597, allocations: 234.7 kB / 462.9 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004998/0.3602, allocations: 315.9 kB / 463.2 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007765/0.3679, allocations: 4.043 MB / 467.2 MB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.776e-05/0.368, allocations: 11.89 kB / 467.2 MB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002754/0.3683, allocations: 128 kB / 467.4 MB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/0.3685, allocations: 146.2 kB / 467.5 MB, free: 6.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005626/0.3741, allocations: 3.401 MB / 470.9 MB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02283/0.397, allocations: 13.37 MB / 484.3 MB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004674/0.4017, allocations: 4.267 MB / 488.5 MB, free: 292 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001782/0.4035, allocations: 1.016 MB / 489.6 MB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005985/0.4095, allocations: 2.855 MB / 492.4 MB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.422e-05/0.4096, allocations: 47.55 kB / 492.5 MB, free: 12.24 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 4.969e-06/0.4096, allocations: 0 / 492.5 MB, free: 12.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01275/0.4224, allocations: 6.044 MB / 498.5 MB, free: 6.105 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.4225, allocations: 64.72 kB / 498.6 MB, free: 6.027 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003579/0.4261, allocations: 1.91 MB / 0.4887 GB, free: 4.074 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.4262, allocations: 49.7 kB / 0.4888 GB, free: 4.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001094/0.4273, allocations: 1.556 MB / 0.4903 GB, free: 2.449 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004259/0.4277, allocations: 0.5035 MB / 0.4908 GB, free: 1.941 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005458/0.4283, allocations: 339.4 kB / 0.4911 GB, free: 1.602 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.777e-05/0.4284, allocations: 301.1 kB / 0.4914 GB, free: 1.305 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.4296, allocations: 0.7691 MB / 0.4922 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001604/0.4312, allocations: 1.383 MB / 0.4935 GB, free: 14.89 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002988/0.4342, allocations: 2.316 MB / 0.4958 GB, free: 12.3 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.788e-05/0.4343, allocations: 8 kB / 0.4958 GB, free: 12.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004131/0.4384, allocations: 2.482 MB / 0.4982 GB, free: 9.797 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.4385, allocations: 12.75 kB / 0.4982 GB, free: 9.785 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.95e-05/0.4385, allocations: 20 kB / 0.4982 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003939/0.4389, allocations: 122.5 kB / 0.4984 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/0.4407, allocations: 491.2 kB / 0.4988 GB, free: 9.156 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001135/0.4418, allocations: 1.406 MB / 0.5002 GB, free: 7.605 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001666/0.4435, allocations: 111.8 kB / 0.5003 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001667/0.4437, allocations: 87.98 kB / 0.5004 GB, free: 7.41 MB / 430.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.00184/0.4455, allocations: 0.9812 MB / 0.5014 GB, free: 6.418 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005293/0.4461, allocations: 214.7 kB / 0.5016 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003604/0.4497, allocations: 1.973 MB / 0.5035 GB, free: 4.215 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.4497, allocations: 16 kB / 0.5035 GB, free: 4.199 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.4497, allocations: 0 / 0.5035 GB, free: 4.199 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.4498, allocations: 3.984 kB / 0.5035 GB, free: 4.195 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009909/0.4597, allocations: 4.999 MB / 0.5084 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.886e-06/0.4597, allocations: 0 / 0.5084 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.4611, allocations: 311.8 kB / 0.5087 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003185/0.4614, allocations: 90.53 kB / 0.5088 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.4615, allocations: 35.98 kB / 0.5088 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.4627, allocations: 1.371 MB / 0.5101 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.4627, allocations: 8 kB / 0.5101 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00469/0.4674, allocations: 3.095 MB / 0.5132 GB, free: 9.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/0.4686, allocations: 467.6 kB / 0.5136 GB, free: 9.504 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005123/0.4691, allocations: 24 kB / 0.5136 GB, free: 9.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.4704, allocations: 87.88 kB / 0.5137 GB, free: 9.395 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/0.4706, allocations: 97.14 kB / 0.5138 GB, free: 9.301 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.43e-05/0.4707, allocations: 35.98 kB / 0.5139 GB, free: 9.266 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002482/0.4732, allocations: 1.297 MB / 0.5151 GB, free: 7.945 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4732, allocations: 0 / 0.5151 GB, free: 7.945 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002173/0.4754, allocations: 0.5351 MB / 0.5156 GB, free: 7.41 MB / 446.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.005026/0.4804, allocations: 3.723 MB / 0.5193 GB, free: 3.621 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003479/0.4839, allocations: 2.216 MB / 0.5214 GB, free: 1.352 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.4839, allocations: 4.062 kB / 0.5214 GB, free: 1.348 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001724/0.4857, allocations: 1.173 MB / 0.5226 GB, free: 124 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003837/0.4895, allocations: 0.5196 MB / 0.5231 GB, free: 15.61 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2778/0.7674, allocations: 20.08 MB / 0.5427 GB, free: 124.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001624/0.769, allocations: 2.264 MB / 0.5449 GB, free: 123.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001494/0.7705, allocations: 0.5141 MB / 0.5454 GB, free: 123.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001291/0.7718, allocations: 1.188 MB / 0.5466 GB, free: 122.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.243e-06/0.7719, allocations: 0 / 0.5466 GB, free: 122.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.079/0.8509, allocations: 49.96 MB / 0.5954 GB, free: 77.56 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.75/14.6, allocations: 5.609 kB / 0.5954 GB, free: 77.56 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches