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.001413/0.001413, allocations: 103 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001611/0.001612, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 63.36 kB / 306.6 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08611/0.08737, allocations: 50.54 MB / 357.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1864/0.2738, allocations: 39.34 MB / 396.5 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02196/0.2958, allocations: 10.48 MB / 406.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008329/0.3041, allocations: 293.8 kB / 407.2 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01931/0.3235, allocations: 8.009 MB / 415.2 MB, free: 432 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01235/0.3359, allocations: 3.064 MB / 418.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007244/0.3431, allocations: 2.169 MB / 420.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.016/0.3591, allocations: 13.01 MB / 433.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04166/0.4008, allocations: 28.63 MB / 462.1 MB, free: 2.988 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01019/0.4111, allocations: 6.802 MB / 468.9 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01097/0.422, allocations: 7.814 MB / 476.7 MB, free: 4.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004059/0.4261, allocations: 1.949 MB / 478.7 MB, free: 2.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006003/0.4321, allocations: 2.375 MB / 481.1 MB, free: 4 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004561/0.4367, allocations: 3.951 MB / 485 MB, free: 12.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009261/0.446, allocations: 7.556 MB / 492.6 MB, free: 4.457 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02269/0.4687, allocations: 25.74 MB / 0.5062 GB, free: 10.64 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4687, allocations: 0 / 0.5062 GB, free: 10.64 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4688, allocations: 0 / 0.5062 GB, free: 10.64 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004855/0.4692, allocations: 0 / 0.5062 GB, free: 10.64 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.03781/0.5071, allocations: 15.07 MB / 0.5209 GB, free: 11.45 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.5071, allocations: 8.031 kB / 0.5209 GB, free: 11.45 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00419/0.5113, allocations: 1.719 MB / 0.5226 GB, free: 9.715 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03154/0.5429, allocations: 6.124 MB / 0.5285 GB, free: 3.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2935/0.8364, allocations: 7.799 MB / 0.5362 GB, free: 126.1 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008207/0.8373, allocations: 0.9142 MB / 0.537 GB, free: 125.7 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004047/0.8414, allocations: 1.193 MB / 0.5382 GB, free: 125.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04401/0.8854, allocations: 18.66 MB / 0.5564 GB, free: 118 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000391/0.8858, allocations: 27.8 kB / 0.5565 GB, free: 118 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002913/0.8887, allocations: 0.494 MB / 0.5569 GB, free: 117.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000505/0.8892, allocations: 0.6401 MB / 0.5576 GB, free: 117.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02961/0.9188, allocations: 16.75 MB / 0.5739 GB, free: 106.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07222/0.9911, allocations: 59.54 MB / 0.6321 GB, free: 45.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01754/1.009, allocations: 33.22 MB / 0.6645 GB, free: 8.648 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004671/1.013, allocations: 3.758 MB / 0.6682 GB, free: 4.883 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01321/1.027, allocations: 8.877 MB / 0.6769 GB, free: 11.96 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/1.027, allocations: 65.31 kB / 0.6769 GB, free: 11.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 4.528e-06/1.027, allocations: 0 / 0.6769 GB, free: 11.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.03389/1.061, allocations: 17.57 MB / 0.6941 GB, free: 10.18 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/1.061, allocations: 90.47 kB / 0.6942 GB, free: 10.08 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008026/1.069, allocations: 5.037 MB / 0.6991 GB, free: 5.047 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004796/1.069, allocations: 85.7 kB / 0.6992 GB, free: 4.957 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003424/1.073, allocations: 5.452 MB / 0.7045 GB, free: 15.47 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001341/1.074, allocations: 1.359 MB / 0.7058 GB, free: 14.12 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002289/1.076, allocations: 1.314 MB / 0.7071 GB, free: 12.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.431e-05/1.076, allocations: 305.1 kB / 0.7074 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00434/1.081, allocations: 2.91 MB / 0.7102 GB, free: 9.582 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006007/1.087, allocations: 5.875 MB / 0.716 GB, free: 2.305 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1916/1.278, allocations: 9.442 MB / 0.7252 GB, free: 150.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.65e-05/1.279, allocations: 28 kB / 0.7252 GB, free: 150.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.0157/1.294, allocations: 9.846 MB / 0.7348 GB, free: 146.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.832e-05/1.294, allocations: 48.33 kB / 0.7349 GB, free: 146.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000175/1.295, allocations: 99.66 kB / 0.735 GB, free: 146.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002574/1.297, allocations: 0.9436 MB / 0.7359 GB, free: 146.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005646/1.303, allocations: 1.583 MB / 0.7374 GB, free: 146.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/1.313, allocations: 10.19 MB / 0.7474 GB, free: 139.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004823/1.318, allocations: 410.2 kB / 0.7478 GB, free: 139.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005808/1.318, allocations: 357.6 kB / 0.7481 GB, free: 139.1 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.005319/1.324, allocations: 4.249 MB / 0.7523 GB, free: 137.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008837/1.324, allocations: 0.51 MB / 0.7528 GB, free: 137.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008794/1.333, allocations: 6.486 MB / 0.7591 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.067e-05/1.333, allocations: 39.81 kB / 0.7591 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.711e-05/1.333, allocations: 15.8 kB / 0.7592 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.87e-05/1.333, allocations: 20.05 kB / 0.7592 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02288/1.356, allocations: 15.72 MB / 0.7745 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/1.356, allocations: 1.125 kB / 0.7745 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002943/1.359, allocations: 0.7513 MB / 0.7753 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001879/1.361, allocations: 0.7965 MB / 0.776 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002375/1.361, allocations: 91.73 kB / 0.7761 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00791/1.369, allocations: 9.35 MB / 0.7853 GB, free: 118.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.369, allocations: 7.969 kB / 0.7853 GB, free: 118.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01095/1.38, allocations: 9.494 MB / 0.7945 GB, free: 109.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001979/1.382, allocations: 1.057 MB / 0.7956 GB, free: 108.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006612/1.383, allocations: 77.39 kB / 0.7956 GB, free: 108.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002146/1.385, allocations: 219.8 kB / 0.7959 GB, free: 108.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004976/1.386, allocations: 266.7 kB / 0.7961 GB, free: 107.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002188/1.386, allocations: 111.7 kB / 0.7962 GB, free: 107.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003909/1.39, allocations: 3.363 MB / 0.7995 GB, free: 104.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.2e-07/1.39, allocations: 0 / 0.7995 GB, free: 104.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005707/1.395, allocations: 1.887 MB / 0.8013 GB, free: 102.4 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.01152/1.407, allocations: 10.22 MB / 0.8113 GB, free: 92.12 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02459/1.432, allocations: 13.11 MB / 0.8241 GB, free: 78.98 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/1.432, allocations: 384 / 0.8241 GB, free: 78.98 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004138/1.436, allocations: 3.559 MB / 0.8276 GB, free: 75.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005054/1.441, allocations: 1.303 MB / 0.8289 GB, free: 74.09 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2805/1.721, allocations: 85.36 MB / 0.9122 GB, free: 168 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00933/1.731, allocations: 7.328 MB / 0.9194 GB, free: 166.2 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.005845/1.737, allocations: 2.156 MB / 0.9215 GB, free: 166.1 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004939/1.742, allocations: 4.332 MB / 0.9257 GB, free: 162.4 MB / 0.4982 GB Notification: Performance of SimCode: time 9.52e-07/1.742, allocations: 0 / 0.9257 GB, free: 162.4 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5623/2.304, allocations: 149.6 MB / 1.072 GB, free: 27.17 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/2.304, allocations: 293.1 kB / 1.072 GB, free: 26.79 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.946/8.25, allocations: 6.812 kB / 1.072 GB, free: 26.79 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