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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001255/0.001255, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001423/0.001423, allocations: 216.9 kB / 24.53 MB, free: 4.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 230.5 MB / 258.2 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 55.91 kB / 378.6 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2654, allocations: 53.41 MB / 432 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04584/0.3112, allocations: 40.33 MB / 472.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02497/0.3362, allocations: 10.7 MB / 483.1 MB, free: 3.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009058/0.3453, allocations: 373.9 kB / 483.4 MB, free: 3.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02212/0.3674, allocations: 8.653 MB / 492.1 MB, free: 10.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01318/0.3806, allocations: 3.573 MB / 495.6 MB, free: 6.801 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008124/0.3887, allocations: 2.433 MB / 498.1 MB, free: 4.375 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01989/0.4086, allocations: 13.04 MB / 0.4991 GB, free: 7.297 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03678/0.4453, allocations: 17.37 MB / 0.5161 GB, free: 5.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01253/0.4579, allocations: 6.974 MB / 0.5229 GB, free: 14.78 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01443/0.4723, allocations: 7.934 MB / 0.5307 GB, free: 6.816 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005494/0.4778, allocations: 1.949 MB / 0.5326 GB, free: 4.867 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007618/0.4854, allocations: 2.375 MB / 0.5349 GB, free: 2.492 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2293/0.7147, allocations: 3.973 MB / 0.5388 GB, free: 31.37 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01422/0.7289, allocations: 7.559 MB / 0.5461 GB, free: 30.92 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02759/0.7565, allocations: 25.97 MB / 0.5715 GB, free: 24.55 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.7565, allocations: 1.906 kB / 0.5715 GB, free: 24.55 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.7565, allocations: 3.062 kB / 0.5715 GB, free: 24.55 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007424/0.7573, allocations: 0 / 0.5715 GB, free: 24.55 MB / 446.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.0455/0.8028, allocations: 15.26 MB / 0.5864 GB, free: 14.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.8028, allocations: 10.88 kB / 0.5864 GB, free: 14.82 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002729/0.8031, allocations: 330.4 kB / 0.5867 GB, free: 14.79 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00621/0.8093, allocations: 1.717 MB / 0.5884 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03202/0.8413, allocations: 6.113 MB / 0.5944 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0169/0.8582, allocations: 8.13 MB / 0.6023 GB, free: 5.094 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007721/0.859, allocations: 0.9037 MB / 0.6032 GB, free: 4.195 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005931/0.8649, allocations: 1.194 MB / 0.6044 GB, free: 3.012 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05455/0.9195, allocations: 18.69 MB / 0.6226 GB, free: 272 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006059/0.9201, allocations: 27.55 kB / 0.6226 GB, free: 248 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0046/0.9247, allocations: 0.4901 MB / 0.6231 GB, free: 15.77 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008111/0.9255, allocations: 0.642 MB / 0.6238 GB, free: 15.12 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04327/0.9688, allocations: 16.8 MB / 0.6402 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1224/1.091, allocations: 57.25 MB / 0.6961 GB, free: 4.832 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02046/1.112, allocations: 10.37 MB / 0.7062 GB, free: 12.12 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007046/1.119, allocations: 3.411 MB / 0.7095 GB, free: 8.699 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02015/1.139, allocations: 8.55 MB / 0.7179 GB, free: 264 kB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.05e-05/1.139, allocations: 73.25 kB / 0.7179 GB, free: 180 kB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 5.13e-06/1.139, allocations: 0 / 0.7179 GB, free: 180 kB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.04422/1.183, allocations: 17.28 MB / 0.7348 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.252e-05/1.183, allocations: 90.47 kB / 0.7349 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01222/1.195, allocations: 5.046 MB / 0.7398 GB, free: 9.793 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0008304/1.196, allocations: 89.7 kB / 0.7399 GB, free: 9.699 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.005017/1.201, allocations: 5.631 MB / 0.7454 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002038/1.203, allocations: 1.42 MB / 0.7468 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003598/1.207, allocations: 1.342 MB / 0.7481 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001214/1.207, allocations: 301.1 kB / 0.7484 GB, free: 1.004 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2607/1.468, allocations: 2.904 MB / 0.7512 GB, free: 162.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0065/1.474, allocations: 5.878 MB / 0.757 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01025/1.484, allocations: 9.46 MB / 0.7662 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001264/1.485, allocations: 33.8 kB / 0.7662 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01555/1.5, allocations: 9.868 MB / 0.7759 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.83e-05/1.5, allocations: 52.88 kB / 0.7759 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001492/1.5, allocations: 101.6 kB / 0.776 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002246/1.503, allocations: 0.9383 MB / 0.7769 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005497/1.508, allocations: 1.586 MB / 0.7785 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009763/1.518, allocations: 9.879 MB / 0.7881 GB, free: 148.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00579/1.524, allocations: 413.7 kB / 0.7885 GB, free: 148.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00116/1.525, allocations: 357.6 kB / 0.7889 GB, free: 148.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.007855/1.533, allocations: 4.244 MB / 0.793 GB, free: 146.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00127/1.534, allocations: 0.5423 MB / 0.7935 GB, free: 146 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01013/1.544, allocations: 6.462 MB / 0.7999 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.406e-05/1.544, allocations: 40 kB / 0.7999 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/1.544, allocations: 8 kB / 0.7999 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.533e-05/1.544, allocations: 20.34 kB / 0.7999 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02356/1.568, allocations: 15.75 MB / 0.8153 GB, free: 126.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/1.568, allocations: 4 kB / 0.8153 GB, free: 126.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002842/1.571, allocations: 0.7604 MB / 0.8161 GB, free: 125.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001942/1.573, allocations: 0.7842 MB / 0.8168 GB, free: 124.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003013/1.573, allocations: 91.97 kB / 0.8169 GB, free: 124.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007944/1.581, allocations: 9.04 MB / 0.8257 GB, free: 115.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/1.581, allocations: 4 kB / 0.8257 GB, free: 115.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01207/1.593, allocations: 9.525 MB / 0.835 GB, free: 106.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002726/1.596, allocations: 1.035 MB / 0.8361 GB, free: 105.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001075/1.597, allocations: 69.83 kB / 0.8361 GB, free: 105 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00267/1.599, allocations: 219.8 kB / 0.8363 GB, free: 104.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005126/1.6, allocations: 282.2 kB / 0.8366 GB, free: 104.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002381/1.6, allocations: 120 kB / 0.8367 GB, free: 104.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004786/1.605, allocations: 3.363 MB / 0.84 GB, free: 101.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.605, allocations: 0 / 0.84 GB, free: 101.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007367/1.612, allocations: 1.88 MB / 0.8418 GB, free: 99.19 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.01266/1.625, allocations: 10.25 MB / 0.8518 GB, free: 88.91 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01069/1.636, allocations: 7.221 MB / 0.8589 GB, free: 81.95 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.493e-06/1.636, allocations: 3.75 kB / 0.8589 GB, free: 81.95 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004305/1.64, allocations: 3.17 MB / 0.862 GB, free: 78.81 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00571/1.646, allocations: 1.291 MB / 0.8633 GB, free: 77.56 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09169/1.737, allocations: 65.29 MB / 0.927 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009657/1.747, allocations: 7.335 MB / 0.9342 GB, free: 1.473 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005752/1.753, allocations: 2.149 MB / 0.9363 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007845/1.761, allocations: 4.35 MB / 0.9405 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of SimCode: time 1.724e-06/1.761, allocations: 0 / 0.9405 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4504/2.211, allocations: 154.7 MB / 1.092 GB, free: 172.5 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.61/25.82, allocations: 12 kB / 1.092 GB, free: 172.5 MB / 0.6231 GB " [Timeout remaining time 634] (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 --stepSize=0.0001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 645] Reference file matches [Calling sys.exit(0), Time elapsed: 67.97853214095812]