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.00164/0.00164, allocations: 114.9 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001972/0.001972, allocations: 205.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 71.88 kB / 358.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2918, allocations: 50.55 MB / 408.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01893/0.3107, allocations: 15.8 MB / 424.7 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01193/0.3227, allocations: 5.342 MB / 430 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004546/0.3273, allocations: 103.6 kB / 430.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003809/0.3311, allocations: 1.07 MB / 431.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00521/0.3364, allocations: 1.246 MB / 432.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00257/0.339, allocations: 0.9195 MB / 433.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005453/0.3444, allocations: 3.639 MB / 437 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004638/0.3491, allocations: 3.321 MB / 440.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003025/0.3522, allocations: 1.737 MB / 442 MB, free: 80 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003609/0.3558, allocations: 2.121 MB / 444.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001076/0.3569, allocations: 476 kB / 444.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001819/0.3587, allocations: 0.7067 MB / 445.3 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001335/0.3601, allocations: 1.141 MB / 446.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003157/0.3633, allocations: 2.05 MB / 448.5 MB, free: 9.574 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00866/0.3719, allocations: 6.322 MB / 454.8 MB, free: 3.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.372, allocations: 0 / 454.8 MB, free: 3.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.372, allocations: 0 / 454.8 MB, free: 3.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001962/0.3722, allocations: 0 / 454.8 MB, free: 3.23 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.01242/0.3846, allocations: 4.37 MB / 459.2 MB, free: 14.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.3847, allocations: 8.031 kB / 459.2 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008174/0.3855, allocations: 447.3 kB / 459.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003027/0.3886, allocations: 0.6388 MB / 460.3 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004797/0.3934, allocations: 2.305 MB / 462.6 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002139/0.3936, allocations: 234.7 kB / 462.8 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007122/0.3943, allocations: 315.9 kB / 463.1 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008326/0.4027, allocations: 4.055 MB / 467.2 MB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.663e-05/0.4028, allocations: 7.953 kB / 467.2 MB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002983/0.4031, allocations: 124 kB / 467.3 MB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001668/0.4033, allocations: 154.2 kB / 467.5 MB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006231/0.4095, allocations: 3.39 MB / 470.9 MB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02234/0.4319, allocations: 13.39 MB / 484.2 MB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005014/0.4369, allocations: 4.266 MB / 488.5 MB, free: 320 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00176/0.4387, allocations: 1.024 MB / 489.5 MB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005194/0.4439, allocations: 2.859 MB / 492.4 MB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.169e-05/0.444, allocations: 43.56 kB / 492.4 MB, free: 12.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.755e-06/0.444, allocations: 0 / 492.4 MB, free: 12.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01277/0.4568, allocations: 6.051 MB / 498.5 MB, free: 6.117 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.532e-05/0.4569, allocations: 64.72 kB / 498.5 MB, free: 6.039 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003278/0.4602, allocations: 1.91 MB / 0.4887 GB, free: 4.086 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001581/0.4604, allocations: 49.7 kB / 0.4888 GB, free: 4.031 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001283/0.4617, allocations: 1.556 MB / 0.4903 GB, free: 2.461 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005156/0.4622, allocations: 0.5035 MB / 0.4908 GB, free: 1.953 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005467/0.4627, allocations: 343.4 kB / 0.4911 GB, free: 1.609 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.4629, allocations: 301.1 kB / 0.4914 GB, free: 1.312 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.4642, allocations: 0.7691 MB / 0.4921 GB, free: 0.543 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001773/0.466, allocations: 1.383 MB / 0.4935 GB, free: 14.89 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003347/0.4693, allocations: 2.316 MB / 0.4958 GB, free: 12.31 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.361e-05/0.4693, allocations: 12 kB / 0.4958 GB, free: 12.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004677/0.474, allocations: 2.474 MB / 0.4982 GB, free: 9.809 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.4741, allocations: 16.75 kB / 0.4982 GB, free: 9.793 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.144e-05/0.4741, allocations: 20 kB / 0.4982 GB, free: 9.773 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003916/0.4745, allocations: 130.4 kB / 0.4983 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001755/0.4763, allocations: 479.2 kB / 0.4988 GB, free: 9.168 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/0.4776, allocations: 1.41 MB / 0.5002 GB, free: 7.613 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/0.4792, allocations: 111.8 kB / 0.5003 GB, free: 7.504 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/0.4794, allocations: 87.98 kB / 0.5004 GB, free: 7.418 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.001989/0.4814, allocations: 0.9889 MB / 0.5013 GB, free: 6.418 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004483/0.4819, allocations: 210.7 kB / 0.5015 GB, free: 6.211 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003551/0.4854, allocations: 1.962 MB / 0.5035 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/0.4855, allocations: 16 kB / 0.5035 GB, free: 4.211 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.4855, allocations: 4 kB / 0.5035 GB, free: 4.207 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/0.4855, allocations: 11.91 kB / 0.5035 GB, free: 4.195 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008857/0.4944, allocations: 4.999 MB / 0.5084 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/0.4944, allocations: 8.25 kB / 0.5084 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/0.4958, allocations: 307.5 kB / 0.5087 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003236/0.4961, allocations: 94.52 kB / 0.5088 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/0.4963, allocations: 28 kB / 0.5088 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/0.4975, allocations: 1.382 MB / 0.5101 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.4975, allocations: 4 kB / 0.5101 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005101/0.5026, allocations: 3.095 MB / 0.5132 GB, free: 9.977 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001188/0.5038, allocations: 467.6 kB / 0.5136 GB, free: 9.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00031/0.5041, allocations: 31.98 kB / 0.5136 GB, free: 9.469 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.5051, allocations: 79.97 kB / 0.5137 GB, free: 9.391 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.5054, allocations: 93.12 kB / 0.5138 GB, free: 9.301 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.375e-05/0.5055, allocations: 36 kB / 0.5138 GB, free: 9.266 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002284/0.5077, allocations: 1.294 MB / 0.5151 GB, free: 7.949 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5078, allocations: 0 / 0.5151 GB, free: 7.949 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002233/0.51, allocations: 0.539 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.005755/0.5158, allocations: 3.723 MB / 0.5193 GB, free: 3.621 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004001/0.5198, allocations: 2.223 MB / 0.5214 GB, free: 1.344 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.892e-06/0.5198, allocations: 0 / 0.5214 GB, free: 1.344 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001795/0.5216, allocations: 1.175 MB / 0.5226 GB, free: 120 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002734/0.5244, allocations: 0.5235 MB / 0.5231 GB, free: 15.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3071/0.8315, allocations: 20.08 MB / 0.5427 GB, free: 124.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00177/0.8334, allocations: 2.271 MB / 0.5449 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001609/0.835, allocations: 0.5148 MB / 0.5454 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001554/0.8365, allocations: 1.186 MB / 0.5466 GB, free: 122.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.623e-06/0.8366, allocations: 3.844 kB / 0.5466 GB, free: 122.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1157/0.9523, allocations: 49.87 MB / 0.5953 GB, free: 77.45 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/15.82, allocations: 10.17 kB / 0.5953 GB, free: 77.44 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 & /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.1.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