Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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.001013/0.001013, allocations: 93.84 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00119/0.00119, allocations: 203.8 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 227.7 MB / 246.8 MB, free: 9.562 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00023/0.0002301, allocations: 4.281 kB / 307.9 MB, free: 476 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08989/0.09013, allocations: 51.52 MB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1892/0.2793, allocations: 37.79 MB / 397.2 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02291/0.3023, allocations: 10.43 MB / 407.6 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006159/0.3085, allocations: 288.5 kB / 407.9 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005313/0.3138, allocations: 2.135 MB / 410 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01019/0.3241, allocations: 3.089 MB / 413.1 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005119/0.3292, allocations: 1.98 MB / 415.1 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0153/0.3445, allocations: 13.04 MB / 428.1 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04328/0.3878, allocations: 24.09 MB / 452.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00754/0.3954, allocations: 4.755 MB / 457 MB, free: 9.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008977/0.4044, allocations: 5.936 MB / 462.9 MB, free: 3.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002795/0.4072, allocations: 0.7578 MB / 463.7 MB, free: 3.012 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005276/0.4125, allocations: 1.171 MB / 464.9 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004003/0.4165, allocations: 2.502 MB / 467.4 MB, free: 15.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01144/0.4279, allocations: 5.968 MB / 473.3 MB, free: 9.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02729/0.4553, allocations: 24.3 MB / 497.6 MB, free: 0.9414 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4553, allocations: 0 / 497.6 MB, free: 0.9414 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4553, allocations: 4 kB / 497.6 MB, free: 0.9375 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005685/0.4559, allocations: 0 / 497.6 MB, free: 0.9375 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03265/0.4885, allocations: 12.45 MB / 0.4981 GB, free: 4.375 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.4886, allocations: 8.031 kB / 0.4981 GB, free: 4.367 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005508/0.4941, allocations: 1.719 MB / 0.4998 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03195/0.5261, allocations: 6.159 MB / 0.5058 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01465/0.5408, allocations: 7.82 MB / 0.5135 GB, free: 4.555 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008943/0.5417, allocations: 0.911 MB / 0.5144 GB, free: 3.641 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003606/0.5453, allocations: 1.199 MB / 0.5155 GB, free: 2.441 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3534/0.8987, allocations: 18.66 MB / 0.5337 GB, free: 124 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006204/0.8994, allocations: 19.23 kB / 0.5338 GB, free: 124 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003495/0.9029, allocations: 0.4906 MB / 0.5342 GB, free: 124 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000961/0.9038, allocations: 0.6395 MB / 0.5349 GB, free: 124 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03853/0.9424, allocations: 16.76 MB / 0.5512 GB, free: 119.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06638/1.009, allocations: 59.76 MB / 0.6096 GB, free: 68.87 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01691/1.026, allocations: 33.19 MB / 0.642 GB, free: 31.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004707/1.03, allocations: 3.771 MB / 0.6457 GB, free: 27.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01183/1.042, allocations: 8.888 MB / 0.6544 GB, free: 19.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.731e-05/1.042, allocations: 73.31 kB / 0.6544 GB, free: 18.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 5.42e-06/1.042, allocations: 0 / 0.6544 GB, free: 18.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03076/1.073, allocations: 17.6 MB / 0.6716 GB, free: 1.242 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.744e-05/1.073, allocations: 94.41 kB / 0.6717 GB, free: 1.137 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01036/1.084, allocations: 5.037 MB / 0.6766 GB, free: 12.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007982/1.085, allocations: 85.7 kB / 0.6767 GB, free: 12.01 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004604/1.089, allocations: 5.458 MB / 0.682 GB, free: 6.52 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002008/1.091, allocations: 1.351 MB / 0.6834 GB, free: 5.18 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001599/1.093, allocations: 0.5242 MB / 0.6839 GB, free: 4.648 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/1.093, allocations: 305.1 kB / 0.6842 GB, free: 4.348 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006075/1.099, allocations: 2.902 MB / 0.687 GB, free: 1.441 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008357/1.107, allocations: 5.883 MB / 0.6927 GB, free: 10.15 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0129/1.12, allocations: 9.448 MB / 0.702 GB, free: 15.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.753e-05/1.12, allocations: 28 kB / 0.702 GB, free: 15.24 MB / 494.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01735/1.138, allocations: 9.855 MB / 0.7116 GB, free: 5.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/1.138, allocations: 48 kB / 0.7117 GB, free: 5.273 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001747/1.138, allocations: 100 kB / 0.7118 GB, free: 5.176 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002605/1.141, allocations: 0.9377 MB / 0.7127 GB, free: 4.223 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00535/1.146, allocations: 1.583 MB / 0.7142 GB, free: 2.637 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1851/1.331, allocations: 9.487 MB / 0.7235 GB, free: 149.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004912/1.336, allocations: 404.6 kB / 0.7239 GB, free: 149.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001016/1.337, allocations: 357.4 kB / 0.7242 GB, free: 149.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006901/1.344, allocations: 4.254 MB / 0.7284 GB, free: 148.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001136/1.345, allocations: 0.514 MB / 0.7289 GB, free: 148.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/1.356, allocations: 6.502 MB / 0.7352 GB, free: 145.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-05/1.356, allocations: 41.47 kB / 0.7353 GB, free: 145.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.382e-05/1.356, allocations: 8.25 kB / 0.7353 GB, free: 145.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.521e-05/1.357, allocations: 20.02 kB / 0.7353 GB, free: 145.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02792/1.384, allocations: 15.73 MB / 0.7507 GB, free: 139.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.565e-05/1.385, allocations: 3.969 kB / 0.7507 GB, free: 139.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00287/1.387, allocations: 0.7442 MB / 0.7514 GB, free: 139.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002175/1.39, allocations: 0.7873 MB / 0.7522 GB, free: 139.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002496/1.39, allocations: 86.09 kB / 0.7522 GB, free: 139.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009298/1.399, allocations: 8.68 MB / 0.7607 GB, free: 133 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.399, allocations: 6.938 kB / 0.7607 GB, free: 133 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01255/1.412, allocations: 9.501 MB / 0.77 GB, free: 129.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002115/1.414, allocations: 1.072 MB / 0.771 GB, free: 128.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001076/1.415, allocations: 70.91 kB / 0.7711 GB, free: 128.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002605/1.418, allocations: 226.9 kB / 0.7713 GB, free: 128.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004531/1.418, allocations: 263.7 kB / 0.7716 GB, free: 128.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002321/1.418, allocations: 113 kB / 0.7717 GB, free: 128.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005463/1.424, allocations: 3.364 MB / 0.775 GB, free: 127.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.424, allocations: 0 / 0.775 GB, free: 127.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006643/1.43, allocations: 1.891 MB / 0.7768 GB, free: 125.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.01287/1.443, allocations: 10.23 MB / 0.7868 GB, free: 116.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01115/1.454, allocations: 7.663 MB / 0.7943 GB, free: 108.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/1.454, allocations: 0 / 0.7943 GB, free: 108.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004354/1.459, allocations: 3.561 MB / 0.7978 GB, free: 105.1 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008938/1.468, allocations: 1.215 MB / 0.799 GB, free: 103.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1218/1.59, allocations: 85.48 MB / 0.8824 GB, free: 10.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007164/1.597, allocations: 7.329 MB / 0.8896 GB, free: 3.289 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006431/1.603, allocations: 2.149 MB / 0.8917 GB, free: 1.137 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007321/1.611, allocations: 4.338 MB / 0.8959 GB, free: 12.8 MB / 0.4982 GB Notification: Performance of SimCode: time 1.213e-06/1.611, allocations: 0 / 0.8959 GB, free: 12.8 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3878/1.998, allocations: 145.1 MB / 1.038 GB, free: 55.5 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000189/1.999, allocations: 291.4 kB / 1.038 GB, free: 55.12 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.253/6.251, allocations: 0 / 1.038 GB, free: 55.12 MB / 0.4982 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches