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.001139/0.001139, allocations: 107.4 kB / 16.51 MB, free: 6.715 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.001142/0.001142, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.236/1.236, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009687/0.0009687, allocations: 43.17 kB / 300.1 MB, free: 6.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08927/0.09026, allocations: 49.46 MB / 349.5 MB, free: 4.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01538/0.1057, allocations: 14.98 MB / 364.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008963/0.1147, allocations: 5.03 MB / 369.5 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002307/0.117, allocations: 99.5 kB / 369.6 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1592/0.2762, allocations: 0.9276 MB / 370.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004076/0.2804, allocations: 1.138 MB / 371.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002107/0.2825, allocations: 0.812 MB / 372.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004851/0.2874, allocations: 3.735 MB / 376.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00389/0.2913, allocations: 2.773 MB / 379 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002482/0.2938, allocations: 1.442 MB / 380.5 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003526/0.2973, allocations: 1.928 MB / 382.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000764/0.2981, allocations: 296 kB / 382.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001728/0.2998, allocations: 0.5005 MB / 383.2 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000905/0.3008, allocations: 0.9523 MB / 384.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002663/0.3034, allocations: 1.846 MB / 386 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004822/0.3083, allocations: 6.061 MB / 392 MB, free: 3.289 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3083, allocations: 0 / 392 MB, free: 3.289 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3083, allocations: 4 kB / 392 MB, free: 3.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001406/0.3084, allocations: 0 / 392 MB, free: 3.285 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.00899/0.3174, allocations: 4.242 MB / 396.3 MB, free: 420 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.3175, allocations: 9.688 kB / 396.3 MB, free: 420 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005014/0.318, allocations: 450.8 kB / 396.7 MB, free: 76 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002704/0.3207, allocations: 0.6299 MB / 397.4 MB, free: 15.76 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003526/0.3242, allocations: 2.188 MB / 399.6 MB, free: 14.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/0.3244, allocations: 247.3 kB / 399.8 MB, free: 14.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003878/0.3248, allocations: 311.6 kB / 400.1 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006607/0.3315, allocations: 4.045 MB / 404.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-05/0.3315, allocations: 11.89 kB / 404.2 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002794/0.3318, allocations: 131.1 kB / 404.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001468/0.332, allocations: 146.2 kB / 404.4 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005343/0.3373, allocations: 3.393 MB / 407.8 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01766/0.355, allocations: 13.29 MB / 421.1 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004066/0.3591, allocations: 3.965 MB / 425.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.3607, allocations: 1.001 MB / 426.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004315/0.365, allocations: 2.67 MB / 428.7 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.444e-05/0.3651, allocations: 43.56 kB / 428.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 2.474e-06/0.3651, allocations: 0 / 428.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.0114/0.3765, allocations: 5.967 MB / 434.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.3766, allocations: 68.72 kB / 434.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002586/0.3792, allocations: 1.897 MB / 436.7 MB, free: 8.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.916e-05/0.3793, allocations: 57.64 kB / 436.8 MB, free: 8.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009938/0.3803, allocations: 1.501 MB / 438.3 MB, free: 7.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003747/0.3807, allocations: 490.7 kB / 438.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004916/0.3812, allocations: 335.2 kB / 439.1 MB, free: 6.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.603e-05/0.3813, allocations: 301.1 kB / 439.4 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.3824, allocations: 0.773 MB / 440.2 MB, free: 5.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/0.384, allocations: 1.378 MB / 441.5 MB, free: 3.695 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002933/0.3869, allocations: 2.314 MB / 443.8 MB, free: 1.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.928e-06/0.387, allocations: 8 kB / 443.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003869/0.3908, allocations: 2.47 MB / 446.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.3909, allocations: 12.12 kB / 446.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.69e-05/0.3909, allocations: 24 kB / 446.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003531/0.3913, allocations: 118.4 kB / 446.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001717/0.393, allocations: 483.2 kB / 446.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009752/0.394, allocations: 1.307 MB / 448.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.3954, allocations: 115.9 kB / 448.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001398/0.3956, allocations: 83.98 kB / 448.4 MB, free: 12.35 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.001513/0.3971, allocations: 0.9773 MB / 449.4 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003309/0.3974, allocations: 201.5 kB / 449.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003185/0.4006, allocations: 1.973 MB / 451.6 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/0.4006, allocations: 16 kB / 451.6 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.4006, allocations: 7.938 kB / 451.6 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.4007, allocations: 3.984 kB / 451.6 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007875/0.4085, allocations: 4.989 MB / 456.6 MB, free: 4.078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.4086, allocations: 4 kB / 456.6 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/0.4099, allocations: 303.5 kB / 456.9 MB, free: 3.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003097/0.4102, allocations: 102.6 kB / 457 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.4103, allocations: 31.98 kB / 457 MB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009027/0.4112, allocations: 1.28 MB / 458.3 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.4113, allocations: 0 / 458.3 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004497/0.4158, allocations: 3.083 MB / 461.4 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008523/0.4166, allocations: 454.4 kB / 461.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003836/0.417, allocations: 31.94 kB / 461.9 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.4181, allocations: 79.97 kB / 462 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001843/0.4183, allocations: 97.11 kB / 462.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.866e-05/0.4184, allocations: 36 kB / 462.1 MB, free: 14.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00199/0.4204, allocations: 1.289 MB / 463.4 MB, free: 13.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4204, allocations: 0 / 463.4 MB, free: 13.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001851/0.4222, allocations: 0.5273 MB / 463.9 MB, free: 12.55 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.004917/0.4272, allocations: 3.703 MB / 467.6 MB, free: 8.789 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003247/0.4304, allocations: 2.217 MB / 469.8 MB, free: 6.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4304, allocations: 0 / 469.8 MB, free: 6.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001537/0.432, allocations: 1.175 MB / 471 MB, free: 5.293 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002365/0.4344, allocations: 494.1 kB / 471.5 MB, free: 4.812 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04204/0.4764, allocations: 23.66 MB / 495.1 MB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003019/0.4795, allocations: 2.263 MB / 497.4 MB, free: 8.926 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001866/0.4814, allocations: 0.5131 MB / 497.9 MB, free: 8.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001686/0.4831, allocations: 1.179 MB / 499.1 MB, free: 7.23 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4831, allocations: 0 / 499.1 MB, free: 7.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2496/0.7327, allocations: 47.37 MB / 0.5337 GB, free: 149.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001621/0.7329, allocations: 279.7 kB / 0.5339 GB, free: 149.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.836/3.569, allocations: 0 / 0.5339 GB, free: 149.2 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