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.001387/0.001387, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001528/0.001528, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 55.91 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2622, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04223/0.3045, allocations: 40.07 MB / 448.9 MB, free: 9.262 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02361/0.3281, allocations: 10.65 MB / 459.5 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01038/0.3386, allocations: 303 kB / 459.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02025/0.3589, allocations: 8.525 MB / 468.4 MB, free: 5.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01221/0.3711, allocations: 3.414 MB / 471.8 MB, free: 2.297 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007557/0.3787, allocations: 2.361 MB / 474.1 MB, free: 15.94 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01707/0.3958, allocations: 12.95 MB / 487.1 MB, free: 2.938 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04426/0.4401, allocations: 25.32 MB / 0.5004 GB, free: 9.469 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01191/0.4521, allocations: 6.822 MB / 0.5071 GB, free: 2.629 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01284/0.465, allocations: 7.841 MB / 0.5147 GB, free: 10.76 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005425/0.4704, allocations: 1.949 MB / 0.5166 GB, free: 8.812 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008792/0.4793, allocations: 2.367 MB / 0.5189 GB, free: 6.445 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008726/0.488, allocations: 3.951 MB / 0.5228 GB, free: 2.484 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01541/0.5035, allocations: 7.56 MB / 0.5302 GB, free: 10.89 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2534/0.7569, allocations: 25.9 MB / 0.5555 GB, free: 55.74 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.757, allocations: 3.312 kB / 0.5555 GB, free: 55.74 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.757, allocations: 0 / 0.5555 GB, free: 55.74 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008058/0.7578, allocations: 0 / 0.5555 GB, free: 55.74 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.04403/0.8018, allocations: 15.04 MB / 0.5702 GB, free: 49.21 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.8019, allocations: 10.44 kB / 0.5702 GB, free: 49.21 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006716/0.8086, allocations: 1.712 MB / 0.5718 GB, free: 48.79 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03207/0.8407, allocations: 6.154 MB / 0.5778 GB, free: 46.38 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01639/0.8571, allocations: 8.067 MB / 0.5857 GB, free: 42.16 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008052/0.858, allocations: 0.901 MB / 0.5866 GB, free: 41.75 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005223/0.8632, allocations: 1.195 MB / 0.5878 GB, free: 41.35 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04669/0.9099, allocations: 18.66 MB / 0.606 GB, free: 24.04 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007674/0.9108, allocations: 15.47 kB / 0.606 GB, free: 24.03 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006058/0.9168, allocations: 0.495 MB / 0.6065 GB, free: 23.54 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006523/0.9175, allocations: 0.6407 MB / 0.6071 GB, free: 22.9 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04249/0.96, allocations: 16.76 MB / 0.6235 GB, free: 6.129 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1168/1.077, allocations: 58.83 MB / 0.6809 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02824/1.105, allocations: 33.21 MB / 0.7134 GB, free: 5.707 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006982/1.112, allocations: 3.734 MB / 0.717 GB, free: 1.957 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0188/1.131, allocations: 8.825 MB / 0.7256 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.638e-05/1.131, allocations: 73.25 kB / 0.7257 GB, free: 9.07 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=349): time 5.781e-06/1.131, allocations: 1.969 kB / 0.7257 GB, free: 9.07 MB / 0.5606 GB Notification: Performance of matching and sorting (n=389): time 0.03919/1.17, allocations: 17.57 MB / 0.7429 GB, free: 7.402 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/1.17, allocations: 90.47 kB / 0.7429 GB, free: 7.301 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00986/1.18, allocations: 5.033 MB / 0.7479 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0007957/1.181, allocations: 93.7 kB / 0.748 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.2122/1.393, allocations: 5.44 MB / 0.7533 GB, free: 217.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001528/1.395, allocations: 1.352 MB / 0.7546 GB, free: 217 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002548/1.397, allocations: 1.325 MB / 0.7559 GB, free: 216.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.686e-05/1.397, allocations: 303.7 kB / 0.7562 GB, free: 216.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004007/1.402, allocations: 2.907 MB / 0.759 GB, free: 216.6 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005033/1.407, allocations: 5.877 MB / 0.7647 GB, free: 212.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008899/1.415, allocations: 9.445 MB / 0.774 GB, free: 205.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.958e-05/1.416, allocations: 29.09 kB / 0.774 GB, free: 205.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01452/1.43, allocations: 9.839 MB / 0.7836 GB, free: 201.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.071e-05/1.43, allocations: 49.75 kB / 0.7837 GB, free: 201.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001353/1.43, allocations: 104.5 kB / 0.7838 GB, free: 201.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002267/1.433, allocations: 0.9387 MB / 0.7847 GB, free: 200.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00531/1.438, allocations: 1.58 MB / 0.7862 GB, free: 200.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009764/1.448, allocations: 10.19 MB / 0.7962 GB, free: 191.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005195/1.453, allocations: 404.3 kB / 0.7965 GB, free: 191.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009582/1.454, allocations: 356.8 kB / 0.7969 GB, free: 190.7 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.00669/1.461, allocations: 4.248 MB / 0.801 GB, free: 187.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001161/1.462, allocations: 0.5131 MB / 0.8015 GB, free: 186.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009809/1.472, allocations: 6.491 MB / 0.8079 GB, free: 181.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.391e-05/1.472, allocations: 40 kB / 0.8079 GB, free: 181 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/1.472, allocations: 8 kB / 0.8079 GB, free: 181 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.452e-05/1.472, allocations: 19.08 kB / 0.8079 GB, free: 181 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02603/1.498, allocations: 15.71 MB / 0.8233 GB, free: 167.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/1.498, allocations: 4 kB / 0.8233 GB, free: 167.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003233/1.501, allocations: 0.7493 MB / 0.824 GB, free: 166.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002017/1.503, allocations: 0.7879 MB / 0.8248 GB, free: 166 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004688/1.504, allocations: 83.97 kB / 0.8249 GB, free: 166 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008366/1.512, allocations: 9.336 MB / 0.834 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/1.512, allocations: 7.938 kB / 0.834 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01212/1.524, allocations: 9.503 MB / 0.8433 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002392/1.527, allocations: 1.057 MB / 0.8443 GB, free: 145.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001078/1.528, allocations: 72 kB / 0.8444 GB, free: 145.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002505/1.53, allocations: 227.7 kB / 0.8446 GB, free: 145.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005265/1.531, allocations: 260.3 kB / 0.8448 GB, free: 144.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002515/1.531, allocations: 116 kB / 0.8449 GB, free: 144.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005061/1.536, allocations: 3.363 MB / 0.8482 GB, free: 141.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.61e-07/1.536, allocations: 4 kB / 0.8482 GB, free: 141.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007155/1.543, allocations: 1.878 MB / 0.8501 GB, free: 139.6 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.01309/1.556, allocations: 10.22 MB / 0.86 GB, free: 129.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01058/1.567, allocations: 7.673 MB / 0.8675 GB, free: 121.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/1.567, allocations: 0 / 0.8675 GB, free: 121.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004962/1.572, allocations: 3.565 MB / 0.871 GB, free: 117.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007052/1.579, allocations: 1.294 MB / 0.8723 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09948/1.679, allocations: 64.87 MB / 0.9356 GB, free: 47.97 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01051/1.689, allocations: 7.329 MB / 0.9428 GB, free: 40.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006266/1.695, allocations: 2.152 MB / 0.9449 GB, free: 38.45 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006347/1.702, allocations: 4.334 MB / 0.9491 GB, free: 34.11 MB / 0.5762 GB Notification: Performance of SimCode: time 1.022e-06/1.702, allocations: 0 / 0.9491 GB, free: 34.11 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4135/2.115, allocations: 147.7 MB / 1.093 GB, free: 108.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.41/24.52, allocations: 8.609 kB / 1.093 GB, free: 108.1 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.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