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.001499/0.001499, allocations: 121.3 kB / 18.5 MB, free: 4.578 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.001974/0.001974, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.651/1.651, allocations: 230.2 MB / 254.5 MB, free: 15.27 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 63.89 kB / 373.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1102, allocations: 53.32 MB / 426.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2738/0.384, allocations: 40.24 MB / 466.9 MB, free: 1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02866/0.4126, allocations: 10.67 MB / 477.6 MB, free: 9.152 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01202/0.4246, allocations: 307.8 kB / 477.9 MB, free: 9.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02539/0.45, allocations: 8.652 MB / 486.6 MB, free: 2.566 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01497/0.465, allocations: 3.486 MB / 490.1 MB, free: 15.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009122/0.4741, allocations: 2.368 MB / 492.4 MB, free: 13.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02103/0.4951, allocations: 12.96 MB / 0.4935 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04131/0.5365, allocations: 19.64 MB / 0.5127 GB, free: 14.61 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01239/0.5488, allocations: 6.833 MB / 0.5194 GB, free: 7.758 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01497/0.5638, allocations: 7.911 MB / 0.5271 GB, free: 15.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007047/0.5709, allocations: 1.953 MB / 0.529 GB, free: 13.87 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009385/0.5802, allocations: 2.374 MB / 0.5313 GB, free: 11.49 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007403/0.5876, allocations: 3.97 MB / 0.5352 GB, free: 7.512 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0183/0.6059, allocations: 7.56 MB / 0.5426 GB, free: 15.92 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04504/0.651, allocations: 25.96 MB / 0.568 GB, free: 5.875 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.918e-06/0.651, allocations: 0 / 0.568 GB, free: 5.875 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.651, allocations: 0 / 0.568 GB, free: 5.875 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001005/0.652, allocations: 0 / 0.568 GB, free: 5.875 MB / 478.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.05045/0.7024, allocations: 15.34 MB / 0.5829 GB, free: 6.402 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.7025, allocations: 12.03 kB / 0.5829 GB, free: 6.391 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006861/0.7094, allocations: 1.707 MB / 0.5846 GB, free: 4.672 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03607/0.7454, allocations: 6.127 MB / 0.5906 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02511/0.7705, allocations: 8.104 MB / 0.5985 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001381/0.7719, allocations: 0.9071 MB / 0.5994 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006324/0.7782, allocations: 1.195 MB / 0.6006 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05858/0.8368, allocations: 18.69 MB / 0.6188 GB, free: 1.465 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007186/0.8376, allocations: 23.89 kB / 0.6188 GB, free: 1.441 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005095/0.8426, allocations: 0.4921 MB / 0.6193 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008821/0.8435, allocations: 0.6421 MB / 0.6199 GB, free: 312 kB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4854/1.329, allocations: 16.8 MB / 0.6363 GB, free: 144.7 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1023/1.431, allocations: 58.99 MB / 0.694 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02068/1.452, allocations: 32.81 MB / 0.726 GB, free: 63.48 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00584/1.458, allocations: 3.409 MB / 0.7293 GB, free: 60.06 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01722/1.475, allocations: 8.886 MB / 0.738 GB, free: 51.3 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/1.475, allocations: 69.31 kB / 0.7381 GB, free: 51.23 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 5.45e-06/1.475, allocations: 0 / 0.7381 GB, free: 51.23 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.03058/1.506, allocations: 17.73 MB / 0.7554 GB, free: 33.86 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/1.506, allocations: 98.47 kB / 0.7555 GB, free: 33.75 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007387/1.513, allocations: 5.042 MB / 0.7604 GB, free: 28.78 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007571/1.514, allocations: 89.7 kB / 0.7605 GB, free: 28.68 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002553/1.516, allocations: 5.633 MB / 0.766 GB, free: 23.09 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001385/1.518, allocations: 1.424 MB / 0.7674 GB, free: 21.68 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001825/1.519, allocations: 1.334 MB / 0.7687 GB, free: 20.34 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.351e-05/1.52, allocations: 305.1 kB / 0.769 GB, free: 20.04 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003754/1.523, allocations: 2.914 MB / 0.7718 GB, free: 17.12 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004948/1.528, allocations: 5.881 MB / 0.7776 GB, free: 9.832 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009515/1.538, allocations: 9.456 MB / 0.7868 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.711e-05/1.538, allocations: 28 kB / 0.7868 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02008/1.558, allocations: 9.874 MB / 0.7965 GB, free: 4.973 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/1.558, allocations: 48 kB / 0.7965 GB, free: 4.926 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001667/1.558, allocations: 100 kB / 0.7966 GB, free: 4.828 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002568/1.561, allocations: 0.9328 MB / 0.7975 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006103/1.567, allocations: 1.587 MB / 0.7991 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/1.581, allocations: 10.19 MB / 0.809 GB, free: 7.672 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005619/1.586, allocations: 407.5 kB / 0.8094 GB, free: 7.273 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001167/1.588, allocations: 352 kB / 0.8097 GB, free: 6.93 MB / 0.545 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.008997/1.597, allocations: 4.251 MB / 0.8139 GB, free: 2.664 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001672/1.598, allocations: 0.5395 MB / 0.8144 GB, free: 2.121 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01391/1.612, allocations: 6.47 MB / 0.8207 GB, free: 11.61 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.625e-05/1.612, allocations: 40 kB / 0.8208 GB, free: 11.57 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.38e-05/1.612, allocations: 8 kB / 0.8208 GB, free: 11.56 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.667e-05/1.612, allocations: 19.92 kB / 0.8208 GB, free: 11.54 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2774/1.89, allocations: 15.71 MB / 0.8362 GB, free: 177.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.467e-05/1.89, allocations: 3.531 kB / 0.8362 GB, free: 177.4 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003415/1.893, allocations: 0.7448 MB / 0.8369 GB, free: 177.4 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002288/1.895, allocations: 0.7934 MB / 0.8377 GB, free: 177.3 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005657/1.896, allocations: 85.86 kB / 0.8377 GB, free: 177.3 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01071/1.907, allocations: 9.351 MB / 0.8469 GB, free: 171.9 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.674e-06/1.907, allocations: 7.656 kB / 0.8469 GB, free: 171.9 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01839/1.925, allocations: 9.52 MB / 0.8562 GB, free: 168 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003779/1.929, allocations: 1.085 MB / 0.8572 GB, free: 167.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001652/1.931, allocations: 70.34 kB / 0.8573 GB, free: 167.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003496/1.934, allocations: 227.6 kB / 0.8575 GB, free: 167.5 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001082/1.935, allocations: 267.9 kB / 0.8578 GB, free: 167.4 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004612/1.936, allocations: 112.8 kB / 0.8579 GB, free: 167.4 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.007989/1.944, allocations: 3.364 MB / 0.8612 GB, free: 166.2 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.31e-07/1.944, allocations: 3.062 kB / 0.8612 GB, free: 166.2 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01057/1.954, allocations: 1.884 MB / 0.863 GB, free: 166 MB / 0.5607 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.01759/1.972, allocations: 10.24 MB / 0.873 GB, free: 161.5 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01129/1.983, allocations: 7.376 MB / 0.8802 GB, free: 158.5 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/1.983, allocations: 3.906 kB / 0.8802 GB, free: 158.5 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004846/1.988, allocations: 3.324 MB / 0.8835 GB, free: 156.9 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006055/1.994, allocations: 1.31 MB / 0.8847 GB, free: 156.5 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1145/2.108, allocations: 65.09 MB / 0.9483 GB, free: 92.88 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01066/2.119, allocations: 7.332 MB / 0.9555 GB, free: 85.51 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006519/2.126, allocations: 2.155 MB / 0.9576 GB, free: 83.36 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006695/2.132, allocations: 4.35 MB / 0.9618 GB, free: 79 MB / 0.5607 GB Notification: Performance of SimCode: time 1.613e-06/2.132, allocations: 0 / 0.9618 GB, free: 79 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5498/2.682, allocations: 149 MB / 1.107 GB, free: 153.5 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.81/26.49, allocations: 10.88 kB / 1.107 GB, free: 153.5 MB / 0.5763 GB " [Timeout remaining time 633] (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_2/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_2/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 653] Reference file matches [Calling sys.exit(0), Time elapsed: 59.73742621811107]