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.001024/0.001024, allocations: 93.78 kB / 16.65 MB, free: 6.535 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.00123/0.00123, allocations: 174.6 kB / 17.56 MB, free: 6.184 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.401/1.401, allocations: 223.3 MB / 241.6 MB, free: 228 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00029/0.0002904, allocations: 8 kB / 301.5 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1059, allocations: 50.42 MB / 352 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01656/0.1226, allocations: 14.27 MB / 366.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01131/0.1339, allocations: 4.975 MB / 371.2 MB, free: 268 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003441/0.1374, allocations: 87.62 kB / 371.3 MB, free: 180 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2/0.3375, allocations: 0.9276 MB / 372.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00497/0.3425, allocations: 1.132 MB / 373.4 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002273/0.3448, allocations: 0.7999 MB / 374.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006033/0.3508, allocations: 3.738 MB / 377.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004847/0.3557, allocations: 2.755 MB / 380.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002901/0.3586, allocations: 1.223 MB / 381.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003684/0.3623, allocations: 1.643 MB / 383.5 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001197/0.3635, allocations: 190.9 kB / 383.7 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002764/0.3663, allocations: 414.5 kB / 384.1 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001884/0.3682, allocations: 0.7977 MB / 384.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004311/0.3725, allocations: 1.682 MB / 386.6 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008184/0.3807, allocations: 5.873 MB / 392.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.3808, allocations: 0 / 392.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.3808, allocations: 0 / 392.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002246/0.381, allocations: 0 / 392.5 MB, free: 3.598 MB / 302.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.0102/0.3912, allocations: 3.583 MB / 396 MB, free: 1.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.609e-05/0.3913, allocations: 13.56 kB / 396.1 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00139/0.3927, allocations: 449.4 kB / 396.5 MB, free: 0.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003789/0.3965, allocations: 0.6208 MB / 397.1 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005505/0.402, allocations: 2.194 MB / 399.3 MB, free: 14.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002657/0.4023, allocations: 245.8 kB / 399.5 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007063/0.403, allocations: 319.8 kB / 399.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007746/0.4108, allocations: 4.042 MB / 403.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.28e-05/0.4109, allocations: 7.938 kB / 403.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002827/0.4112, allocations: 126.3 kB / 404 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001445/0.4113, allocations: 146.2 kB / 404.2 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006037/0.4174, allocations: 3.401 MB / 407.6 MB, free: 7.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02019/0.4376, allocations: 13.34 MB / 420.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004623/0.4423, allocations: 3.973 MB / 424.9 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/0.4441, allocations: 1.004 MB / 425.9 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004336/0.4484, allocations: 2.673 MB / 428.6 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.4485, allocations: 47.56 kB / 428.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 2.605e-06/0.4485, allocations: 0 / 428.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01137/0.4599, allocations: 5.995 MB / 434.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.4599, allocations: 64.72 kB / 434.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002805/0.4627, allocations: 1.897 MB / 436.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.4629, allocations: 45.7 kB / 436.6 MB, free: 9.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001149/0.464, allocations: 1.499 MB / 438.1 MB, free: 8.156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004061/0.4644, allocations: 493.2 kB / 438.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002061/0.4646, allocations: 149.6 kB / 438.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.4648, allocations: 301.1 kB / 439 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/0.466, allocations: 0.7769 MB / 439.8 MB, free: 6.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/0.4677, allocations: 1.378 MB / 441.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003022/0.4707, allocations: 2.325 MB / 443.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.4707, allocations: 4 kB / 443.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003983/0.4747, allocations: 2.477 MB / 446 MB, free: 15.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.4748, allocations: 12 kB / 446 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.28e-05/0.4748, allocations: 20 kB / 446 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003532/0.4752, allocations: 122.5 kB / 446.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001724/0.4769, allocations: 487.5 kB / 446.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.478, allocations: 1.307 MB / 447.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/0.4796, allocations: 111.8 kB / 448 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.4798, allocations: 83.98 kB / 448.1 MB, free: 13.45 MB / 366.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.002046/0.4818, allocations: 0.9813 MB / 449.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003991/0.4822, allocations: 205.4 kB / 449.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00329/0.4855, allocations: 1.958 MB / 451.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.4855, allocations: 16 kB / 451.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.4855, allocations: 3.938 kB / 451.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.4856, allocations: 11.97 kB / 451.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008001/0.4936, allocations: 4.99 MB / 456.3 MB, free: 5.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/0.4936, allocations: 4 kB / 456.3 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/0.4949, allocations: 319.7 kB / 456.6 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003085/0.4953, allocations: 94.47 kB / 456.7 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.011e-05/0.4954, allocations: 31.98 kB / 456.7 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009841/0.4963, allocations: 1.276 MB / 458 MB, free: 3.328 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.4964, allocations: 11.88 kB / 458 MB, free: 3.316 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004651/0.501, allocations: 3.089 MB / 461.1 MB, free: 176 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.5022, allocations: 462.6 kB / 461.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002396/0.5024, allocations: 31.92 kB / 461.6 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009917/0.5034, allocations: 83.97 kB / 461.7 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.5036, allocations: 89.12 kB / 461.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.821e-05/0.5037, allocations: 40 kB / 461.8 MB, free: 15.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002282/0.506, allocations: 1.285 MB / 463.1 MB, free: 14.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.506, allocations: 0 / 463.1 MB, free: 14.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001958/0.508, allocations: 0.5312 MB / 463.6 MB, free: 13.62 MB / 382.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.00504/0.513, allocations: 3.706 MB / 467.3 MB, free: 9.852 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003684/0.5167, allocations: 2.213 MB / 469.5 MB, free: 7.586 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/0.5167, allocations: 0 / 469.5 MB, free: 7.586 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001618/0.5184, allocations: 1.186 MB / 470.7 MB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003236/0.5216, allocations: 486.4 kB / 471.2 MB, free: 5.875 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04453/0.5662, allocations: 23.75 MB / 494.9 MB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002259/0.5685, allocations: 2.267 MB / 497.2 MB, free: 9.887 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001984/0.5705, allocations: 0.5092 MB / 497.7 MB, free: 9.375 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/0.5722, allocations: 1.179 MB / 498.9 MB, free: 8.195 MB / 414.1 MB Notification: Performance of SimCode: time 1.302e-06/0.5722, allocations: 0 / 498.9 MB, free: 8.195 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.303/0.8752, allocations: 46.8 MB / 0.5329 GB, free: 147.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/0.8754, allocations: 278.6 kB / 0.5332 GB, free: 146.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.177/4.053, allocations: 0 / 0.5332 GB, free: 146.8 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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