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.001331/0.001331, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001487/0.001487, allocations: 198 kB / 18.73 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.43/1.43, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 59.91 kB / 358.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2811, allocations: 50.55 MB / 408.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04337/0.3245, allocations: 40.08 MB / 449 MB, free: 9.195 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02333/0.3479, allocations: 10.64 MB / 459.6 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00799/0.3559, allocations: 307 kB / 459.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02052/0.3765, allocations: 8.524 MB / 468.4 MB, free: 5.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01236/0.3889, allocations: 3.41 MB / 471.8 MB, free: 2.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007429/0.3963, allocations: 2.374 MB / 474.2 MB, free: 15.87 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0183/0.4146, allocations: 12.95 MB / 487.2 MB, free: 2.875 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03931/0.454, allocations: 25.31 MB / 0.5005 GB, free: 9.406 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01145/0.4655, allocations: 6.802 MB / 0.5071 GB, free: 2.586 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01415/0.4797, allocations: 7.829 MB / 0.5147 GB, free: 10.73 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006/0.4857, allocations: 1.953 MB / 0.5167 GB, free: 8.773 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008252/0.494, allocations: 2.363 MB / 0.519 GB, free: 6.414 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006571/0.5006, allocations: 3.959 MB / 0.5228 GB, free: 2.445 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01345/0.514, allocations: 7.556 MB / 0.5302 GB, free: 10.86 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2993/0.8134, allocations: 25.97 MB / 0.5556 GB, free: 55.4 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.8134, allocations: 2.062 kB / 0.5556 GB, free: 55.4 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.8134, allocations: 0 / 0.5556 GB, free: 55.4 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008149/0.8143, allocations: 0 / 0.5556 GB, free: 55.4 MB / 462.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.0469/0.8612, allocations: 15.33 MB / 0.5705 GB, free: 48.57 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.8612, allocations: 6.906 kB / 0.5705 GB, free: 48.57 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007045/0.8683, allocations: 1.721 MB / 0.5722 GB, free: 48.13 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03358/0.9019, allocations: 6.12 MB / 0.5782 GB, free: 45.71 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01735/0.9193, allocations: 8.105 MB / 0.5861 GB, free: 41.45 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006985/0.92, allocations: 0.911 MB / 0.587 GB, free: 41.04 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005276/0.9253, allocations: 1.193 MB / 0.5882 GB, free: 40.64 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04227/0.9676, allocations: 18.69 MB / 0.6064 GB, free: 23.37 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004425/0.9681, allocations: 27.45 kB / 0.6064 GB, free: 23.34 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004206/0.9723, allocations: 498.2 kB / 0.6069 GB, free: 22.87 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004943/0.9728, allocations: 0.6421 MB / 0.6076 GB, free: 22.22 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03302/1.006, allocations: 16.8 MB / 0.624 GB, free: 5.414 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1103/1.116, allocations: 58.99 MB / 0.6816 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03385/1.15, allocations: 33.25 MB / 0.714 GB, free: 4.805 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007262/1.157, allocations: 3.744 MB / 0.7177 GB, free: 1.051 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01797/1.175, allocations: 8.887 MB / 0.7264 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.622e-05/1.175, allocations: 73.25 kB / 0.7264 GB, free: 8.117 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=349): time 5.481e-06/1.175, allocations: 0 / 0.7264 GB, free: 8.117 MB / 0.5606 GB Notification: Performance of matching and sorting (n=389): time 0.04272/1.218, allocations: 17.76 MB / 0.7438 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/1.218, allocations: 90.47 kB / 0.7439 GB, free: 6.172 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01091/1.229, allocations: 5.046 MB / 0.7488 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0009729/1.23, allocations: 89.7 kB / 0.7489 GB, free: 1.039 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.2386/1.469, allocations: 5.635 MB / 0.7544 GB, free: 216.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00157/1.47, allocations: 1.421 MB / 0.7558 GB, free: 215.9 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002139/1.473, allocations: 1.331 MB / 0.7571 GB, free: 215.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.215e-05/1.473, allocations: 312.5 kB / 0.7574 GB, free: 215.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00409/1.477, allocations: 2.909 MB / 0.7602 GB, free: 215.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004827/1.482, allocations: 5.877 MB / 0.7659 GB, free: 210.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00929/1.491, allocations: 9.462 MB / 0.7752 GB, free: 203.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.579e-05/1.491, allocations: 26.5 kB / 0.7752 GB, free: 203.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01795/1.509, allocations: 9.902 MB / 0.7849 GB, free: 199.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.841e-05/1.509, allocations: 50.38 kB / 0.7849 GB, free: 199.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001964/1.509, allocations: 98.5 kB / 0.785 GB, free: 199.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00243/1.512, allocations: 0.9396 MB / 0.7859 GB, free: 199.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005772/1.518, allocations: 1.586 MB / 0.7875 GB, free: 199.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/1.528, allocations: 10.19 MB / 0.7974 GB, free: 190.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006407/1.534, allocations: 407.3 kB / 0.7978 GB, free: 189.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001722/1.536, allocations: 355.4 kB / 0.7982 GB, free: 189.4 MB / 0.5762 GB 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.008995/1.545, allocations: 4.246 MB / 0.8023 GB, free: 185.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001388/1.547, allocations: 0.5354 MB / 0.8028 GB, free: 185.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01029/1.557, allocations: 6.495 MB / 0.8092 GB, free: 179.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-05/1.557, allocations: 36.56 kB / 0.8092 GB, free: 179.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.877e-05/1.557, allocations: 12 kB / 0.8092 GB, free: 179.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.915e-05/1.557, allocations: 23.03 kB / 0.8092 GB, free: 179.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02814/1.585, allocations: 15.75 MB / 0.8246 GB, free: 166 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.464e-05/1.585, allocations: 4 kB / 0.8246 GB, free: 166 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002975/1.588, allocations: 0.7493 MB / 0.8254 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00203/1.59, allocations: 0.7888 MB / 0.8261 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002816/1.591, allocations: 83.97 kB / 0.8262 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008615/1.599, allocations: 9.362 MB / 0.8354 GB, free: 154.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.599, allocations: 8.156 kB / 0.8354 GB, free: 154.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0132/1.612, allocations: 9.542 MB / 0.8447 GB, free: 144.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002745/1.615, allocations: 1.083 MB / 0.8457 GB, free: 143.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001096/1.616, allocations: 71.98 kB / 0.8458 GB, free: 143.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002526/1.619, allocations: 223.8 kB / 0.846 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005878/1.62, allocations: 269.8 kB / 0.8463 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002513/1.62, allocations: 116 kB / 0.8464 GB, free: 143.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00532/1.625, allocations: 3.363 MB / 0.8497 GB, free: 139.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.31e-07/1.625, allocations: 0 / 0.8497 GB, free: 139.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008756/1.634, allocations: 1.887 MB / 0.8515 GB, free: 137.9 MB / 0.5762 GB 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.01294/1.647, allocations: 10.28 MB / 0.8616 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01065/1.658, allocations: 7.681 MB / 0.8691 GB, free: 119.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/1.658, allocations: 0 / 0.8691 GB, free: 119.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004673/1.662, allocations: 3.575 MB / 0.8725 GB, free: 116.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006656/1.669, allocations: 1.303 MB / 0.8738 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1105/1.779, allocations: 65.17 MB / 0.9375 GB, free: 45.81 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01306/1.793, allocations: 7.333 MB / 0.9446 GB, free: 38.44 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00609/1.799, allocations: 2.152 MB / 0.9467 GB, free: 36.28 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006698/1.805, allocations: 4.346 MB / 0.951 GB, free: 31.94 MB / 0.5762 GB Notification: Performance of SimCode: time 9.12e-07/1.805, allocations: 3.938 kB / 0.951 GB, free: 31.93 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5197/2.325, allocations: 146.8 MB / 1.094 GB, free: 106.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.42/24.75, allocations: 20.81 kB / 1.094 GB, free: 106.6 MB / 0.5762 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.1.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