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.001112/0.001112, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 206.4 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.336/1.336, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 63.92 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09573/0.0978, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.184/0.2818, allocations: 40.07 MB / 397.7 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02171/0.3036, allocations: 10.66 MB / 408.3 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007192/0.3108, allocations: 308.5 kB / 408.6 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01916/0.33, allocations: 8.516 MB / 417.2 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01183/0.3419, allocations: 3.412 MB / 420.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006785/0.3487, allocations: 2.368 MB / 422.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01541/0.3641, allocations: 12.86 MB / 435.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03712/0.4012, allocations: 25.4 MB / 461.2 MB, free: 4.062 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009109/0.4104, allocations: 6.787 MB / 468 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01166/0.4221, allocations: 7.837 MB / 475.8 MB, free: 5.395 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005098/0.4272, allocations: 1.953 MB / 477.8 MB, free: 3.441 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008669/0.4359, allocations: 2.378 MB / 480.1 MB, free: 1.062 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006844/0.4428, allocations: 3.959 MB / 484.1 MB, free: 13.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01179/0.4546, allocations: 7.556 MB / 491.7 MB, free: 5.504 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02476/0.4794, allocations: 25.74 MB / 0.5053 GB, free: 11.7 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4794, allocations: 0 / 0.5053 GB, free: 11.7 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4794, allocations: 0 / 0.5053 GB, free: 11.7 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005484/0.48, allocations: 0 / 0.5053 GB, free: 11.7 MB / 430.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.04302/0.523, allocations: 15.08 MB / 0.52 GB, free: 12.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.5231, allocations: 8.031 kB / 0.52 GB, free: 12.49 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005365/0.5284, allocations: 1.723 MB / 0.5217 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03424/0.5627, allocations: 6.12 MB / 0.5277 GB, free: 4.613 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2948/0.8575, allocations: 7.822 MB / 0.5353 GB, free: 126.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008871/0.8584, allocations: 0.911 MB / 0.5362 GB, free: 125.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004188/0.8626, allocations: 1.2 MB / 0.5374 GB, free: 125.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04348/0.9061, allocations: 18.65 MB / 0.5556 GB, free: 118.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004308/0.9065, allocations: 23.47 kB / 0.5556 GB, free: 118.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003429/0.91, allocations: 0.494 MB / 0.5561 GB, free: 117.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005603/0.9106, allocations: 0.6383 MB / 0.5567 GB, free: 117.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0332/0.9438, allocations: 16.75 MB / 0.5731 GB, free: 106.9 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07253/1.016, allocations: 59.56 MB / 0.6312 GB, free: 46.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.017/1.033, allocations: 33.22 MB / 0.6637 GB, free: 9.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004689/1.038, allocations: 3.754 MB / 0.6673 GB, free: 5.672 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0124/1.05, allocations: 8.881 MB / 0.676 GB, free: 12.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.118e-05/1.051, allocations: 69.31 kB / 0.6761 GB, free: 12.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 4.719e-06/1.051, allocations: 0 / 0.6761 GB, free: 12.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.03502/1.086, allocations: 17.56 MB / 0.6932 GB, free: 10.97 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/1.086, allocations: 90.47 kB / 0.6933 GB, free: 10.87 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008812/1.095, allocations: 5.029 MB / 0.6982 GB, free: 5.844 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005064/1.095, allocations: 93.7 kB / 0.6983 GB, free: 5.746 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003496/1.099, allocations: 5.445 MB / 0.7036 GB, free: 272 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001399/1.1, allocations: 1.355 MB / 0.705 GB, free: 14.92 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002534/1.103, allocations: 1.318 MB / 0.7062 GB, free: 13.59 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.882e-05/1.103, allocations: 305.1 kB / 0.7065 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004718/1.107, allocations: 2.906 MB / 0.7094 GB, free: 10.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007135/1.115, allocations: 5.88 MB / 0.7151 GB, free: 3.102 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2092/1.324, allocations: 9.438 MB / 0.7243 GB, free: 150.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.946e-05/1.324, allocations: 28.84 kB / 0.7244 GB, free: 150.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01487/1.339, allocations: 9.847 MB / 0.734 GB, free: 146.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.079e-05/1.339, allocations: 48.88 kB / 0.734 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001435/1.339, allocations: 99 kB / 0.7341 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002426/1.341, allocations: 0.9441 MB / 0.735 GB, free: 146.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005186/1.347, allocations: 1.587 MB / 0.7366 GB, free: 146.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009997/1.357, allocations: 10.17 MB / 0.7465 GB, free: 139.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004586/1.361, allocations: 419.8 kB / 0.7469 GB, free: 139.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005051/1.362, allocations: 349.9 kB / 0.7473 GB, free: 139.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.005138/1.367, allocations: 4.25 MB / 0.7514 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008429/1.368, allocations: 0.5136 MB / 0.7519 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009059/1.377, allocations: 6.482 MB / 0.7582 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.962e-05/1.377, allocations: 39.59 kB / 0.7583 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-05/1.377, allocations: 13.47 kB / 0.7583 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.092e-05/1.377, allocations: 22.97 kB / 0.7583 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02454/1.401, allocations: 15.73 MB / 0.7737 GB, free: 128.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/1.402, allocations: 0 / 0.7737 GB, free: 128.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003249/1.405, allocations: 0.7478 MB / 0.7744 GB, free: 128.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00227/1.407, allocations: 0.7973 MB / 0.7752 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006347/1.408, allocations: 95.2 kB / 0.7753 GB, free: 127.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00896/1.417, allocations: 9.352 MB / 0.7844 GB, free: 119 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/1.417, allocations: 4.031 kB / 0.7844 GB, free: 119 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01263/1.429, allocations: 9.488 MB / 0.7937 GB, free: 110.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002071/1.431, allocations: 1.061 MB / 0.7947 GB, free: 109 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006662/1.432, allocations: 75.98 kB / 0.7948 GB, free: 109 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002141/1.434, allocations: 219.8 kB / 0.795 GB, free: 108.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005124/1.435, allocations: 266.7 kB / 0.7953 GB, free: 108.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002174/1.435, allocations: 112 kB / 0.7954 GB, free: 108.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004403/1.439, allocations: 3.363 MB / 0.7986 GB, free: 105 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.01e-07/1.439, allocations: 0 / 0.7986 GB, free: 105 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005921/1.445, allocations: 1.888 MB / 0.8005 GB, free: 103.2 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.01158/1.457, allocations: 10.23 MB / 0.8105 GB, free: 92.82 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02679/1.484, allocations: 13.11 MB / 0.8233 GB, free: 79.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.484, allocations: 4.125 kB / 0.8233 GB, free: 79.67 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005188/1.489, allocations: 3.548 MB / 0.8267 GB, free: 76.05 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005451/1.495, allocations: 1.308 MB / 0.828 GB, free: 74.79 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2934/1.788, allocations: 80.49 MB / 0.9066 GB, free: 165.6 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01044/1.798, allocations: 7.327 MB / 0.9138 GB, free: 164.7 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.007019/1.805, allocations: 2.152 MB / 0.9159 GB, free: 164.6 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006346/1.812, allocations: 4.338 MB / 0.9201 GB, free: 161.8 MB / 0.4982 GB Notification: Performance of SimCode: time 1.463e-06/1.812, allocations: 0 / 0.9201 GB, free: 161.8 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1923/2.004, allocations: 149.7 MB / 1.066 GB, free: 31.71 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.87/19.87, allocations: 12.89 kB / 1.066 GB, free: 31.7 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