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.001151/0.001151, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001261, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 64.92 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1224, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2415/0.364, allocations: 15.78 MB / 373.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0141/0.3782, allocations: 5.347 MB / 378.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004924/0.3832, allocations: 100.8 kB / 378.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005002/0.3882, allocations: 1.076 MB / 379.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006697/0.395, allocations: 1.235 MB / 381.1 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003985/0.399, allocations: 0.92 MB / 382.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008031/0.4071, allocations: 3.63 MB / 385.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008229/0.4153, allocations: 3.322 MB / 389 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005074/0.4204, allocations: 1.727 MB / 390.7 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005442/0.4259, allocations: 2.115 MB / 392.9 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002368/0.4283, allocations: 479.1 kB / 393.3 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004352/0.4327, allocations: 0.7157 MB / 394 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00324/0.436, allocations: 1.141 MB / 395.2 MB, free: 2.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006978/0.443, allocations: 2.044 MB / 397.2 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0119/0.4549, allocations: 6.249 MB / 403.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.455, allocations: 0 / 403.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.455, allocations: 0 / 403.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003085/0.4553, allocations: 0 / 403.5 MB, free: 12.52 MB / 318.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.01625/0.4715, allocations: 4.272 MB / 407.7 MB, free: 9.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.4716, allocations: 8.031 kB / 407.8 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001735/0.4734, allocations: 454.3 kB / 408.2 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004115/0.4775, allocations: 0.6232 MB / 408.8 MB, free: 7.965 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006269/0.4838, allocations: 2.226 MB / 411 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003399/0.4841, allocations: 241.5 kB / 411.3 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001268/0.4854, allocations: 315.8 kB / 411.6 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01118/0.4966, allocations: 4.049 MB / 415.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001249/0.4968, allocations: 3.938 kB / 415.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007074/0.4975, allocations: 128 kB / 415.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001811/0.4977, allocations: 146.2 kB / 415.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008131/0.5058, allocations: 3.39 MB / 419.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02886/0.5347, allocations: 13.51 MB / 432.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004797/0.5396, allocations: 4.271 MB / 437.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001788/0.5414, allocations: 1.038 MB / 438.1 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005395/0.5468, allocations: 2.863 MB / 441 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.109e-05/0.5469, allocations: 47.55 kB / 441 MB, free: 6.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 5.811e-06/0.5469, allocations: 3.984 kB / 441 MB, free: 6.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01248/0.5594, allocations: 5.982 MB / 447 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.5595, allocations: 68.72 kB / 447.1 MB, free: 492 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003628/0.5631, allocations: 1.913 MB / 449 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.5632, allocations: 49.7 kB / 449 MB, free: 14.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001105/0.5644, allocations: 1.512 MB / 450.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004649/0.5648, allocations: 491.2 kB / 451 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005653/0.5654, allocations: 331.2 kB / 451.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.5655, allocations: 301.1 kB / 451.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00127/0.5668, allocations: 0.773 MB / 452.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.5686, allocations: 1.375 MB / 453.8 MB, free: 9.426 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003292/0.5719, allocations: 2.32 MB / 456.1 MB, free: 6.836 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.337e-05/0.5719, allocations: 8 kB / 456.1 MB, free: 6.828 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004611/0.5766, allocations: 2.47 MB / 458.6 MB, free: 4.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.348e-05/0.5766, allocations: 12 kB / 458.6 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.626e-05/0.5767, allocations: 24.06 kB / 458.6 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004006/0.5771, allocations: 122.5 kB / 458.8 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/0.5789, allocations: 487.2 kB / 459.2 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001216/0.5802, allocations: 1.41 MB / 460.6 MB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.5821, allocations: 111.8 kB / 460.8 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000184/0.5823, allocations: 79.98 kB / 460.8 MB, free: 1.957 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.002079/0.5844, allocations: 0.989 MB / 461.8 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006271/0.585, allocations: 205.5 kB / 462 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003691/0.5887, allocations: 1.969 MB / 464 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.5887, allocations: 15.94 kB / 464 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.5887, allocations: 3.938 kB / 464 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.861e-05/0.5888, allocations: 7.984 kB / 464 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/0.599, allocations: 4.999 MB / 469 MB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.457e-06/0.599, allocations: 7.938 kB / 469 MB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001387/0.6004, allocations: 307.8 kB / 469.3 MB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000328/0.6007, allocations: 90.53 kB / 469.4 MB, free: 9.258 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/0.6009, allocations: 35.98 kB / 469.4 MB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.6021, allocations: 1.375 MB / 470.8 MB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/0.6022, allocations: 12 kB / 470.8 MB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00518/0.6074, allocations: 3.081 MB / 473.9 MB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/0.6086, allocations: 450.5 kB / 474.4 MB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004662/0.6091, allocations: 31.98 kB / 474.4 MB, free: 4.074 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.6101, allocations: 79.97 kB / 474.5 MB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.6103, allocations: 93.06 kB / 474.6 MB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-05/0.6104, allocations: 36 kB / 474.6 MB, free: 3.871 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002041/0.6125, allocations: 1.297 MB / 475.9 MB, free: 2.551 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.693e-06/0.6125, allocations: 0 / 475.9 MB, free: 2.551 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002069/0.6146, allocations: 0.5429 MB / 476.4 MB, free: 2.008 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.004989/0.6196, allocations: 3.712 MB / 480.1 MB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005576/0.6251, allocations: 2.829 MB / 483 MB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.6252, allocations: 0 / 483 MB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/0.6269, allocations: 1.174 MB / 484.1 MB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002855/0.6297, allocations: 0.5289 MB / 484.7 MB, free: 9.598 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03461/0.6643, allocations: 22.37 MB / 0.4952 GB, free: 1.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002211/0.6666, allocations: 2.264 MB / 0.4974 GB, free: 14.97 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002091/0.6687, allocations: 0.5132 MB / 0.4979 GB, free: 14.46 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00173/0.6705, allocations: 1.19 MB / 0.499 GB, free: 13.27 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6705, allocations: 0 / 0.499 GB, free: 13.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4125/1.083, allocations: 48.88 MB / 0.5468 GB, free: 145.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/11.69, allocations: 6.656 kB / 0.5468 GB, free: 145.1 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches