Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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.00162/0.00162, allocations: 44.02 kB / 370.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2526, allocations: 52.18 MB / 422.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0495/0.3021, allocations: 39.69 MB / 462.4 MB, free: 6.844 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02497/0.3271, allocations: 10.46 MB / 472.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00776/0.3349, allocations: 370 kB / 473.2 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02232/0.3572, allocations: 8.648 MB / 481.8 MB, free: 3.316 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01296/0.3701, allocations: 3.566 MB / 485.4 MB, free: 15.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007942/0.3781, allocations: 2.388 MB / 487.8 MB, free: 13.35 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01944/0.3975, allocations: 12.97 MB / 0.489 GB, free: 344 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03651/0.434, allocations: 17.36 MB / 0.506 GB, free: 14.82 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01392/0.448, allocations: 6.974 MB / 0.5128 GB, free: 7.828 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01475/0.4627, allocations: 7.821 MB / 0.5204 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005823/0.4685, allocations: 1.953 MB / 0.5223 GB, free: 14.03 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008268/0.4768, allocations: 2.355 MB / 0.5246 GB, free: 11.67 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007219/0.484, allocations: 3.97 MB / 0.5285 GB, free: 7.691 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01609/0.5001, allocations: 7.56 MB / 0.5359 GB, free: 104 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2647/0.7648, allocations: 25.93 MB / 0.5612 GB, free: 41.63 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.7648, allocations: 2.625 kB / 0.5612 GB, free: 41.63 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.7648, allocations: 0 / 0.5612 GB, free: 41.63 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000697/0.7655, allocations: 0 / 0.5612 GB, free: 41.63 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.04429/0.8098, allocations: 15.21 MB / 0.5761 GB, free: 33.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.8098, allocations: 11.72 kB / 0.5761 GB, free: 33.82 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006292/0.8161, allocations: 1.716 MB / 0.5778 GB, free: 32.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03295/0.8491, allocations: 6.205 MB / 0.5838 GB, free: 29.76 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01798/0.867, allocations: 8.104 MB / 0.5917 GB, free: 24.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007011/0.8677, allocations: 0.8991 MB / 0.5926 GB, free: 23.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005054/0.8728, allocations: 1.191 MB / 0.5938 GB, free: 22.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04751/0.9203, allocations: 18.66 MB / 0.612 GB, free: 3.551 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007069/0.921, allocations: 23.28 kB / 0.612 GB, free: 3.531 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005011/0.926, allocations: 499.7 kB / 0.6125 GB, free: 3.055 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006064/0.9266, allocations: 0.6382 MB / 0.6131 GB, free: 2.414 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04195/0.9686, allocations: 16.77 MB / 0.6295 GB, free: 1.633 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1195/1.088, allocations: 57.14 MB / 0.6853 GB, free: 8.262 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01948/1.108, allocations: 10.24 MB / 0.6953 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006915/1.115, allocations: 3.375 MB / 0.6986 GB, free: 12.26 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02021/1.135, allocations: 8.457 MB / 0.7069 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.386e-05/1.135, allocations: 73.25 kB / 0.7069 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 6.142e-06/1.135, allocations: 4 kB / 0.7069 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.04317/1.178, allocations: 17.23 MB / 0.7237 GB, free: 2.633 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.507e-05/1.178, allocations: 93.94 kB / 0.7238 GB, free: 2.531 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01086/1.189, allocations: 5.025 MB / 0.7287 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007508/1.19, allocations: 89.7 kB / 0.7288 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.004951/1.195, allocations: 5.638 MB / 0.7343 GB, free: 7.766 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002054/1.197, allocations: 1.417 MB / 0.7357 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004132/1.201, allocations: 1.327 MB / 0.737 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001285/1.201, allocations: 301.1 kB / 0.7373 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005627/1.207, allocations: 2.906 MB / 0.7401 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2348/1.441, allocations: 5.878 MB / 0.7459 GB, free: 194.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/1.453, allocations: 9.438 MB / 0.7551 GB, free: 189.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002015/1.453, allocations: 29.12 kB / 0.7551 GB, free: 189.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01684/1.47, allocations: 9.848 MB / 0.7647 GB, free: 185.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001249/1.47, allocations: 50.59 kB / 0.7648 GB, free: 185.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001784/1.47, allocations: 97.34 kB / 0.7649 GB, free: 185.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00248/1.472, allocations: 0.9386 MB / 0.7658 GB, free: 185.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005959/1.478, allocations: 1.585 MB / 0.7673 GB, free: 185.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/1.489, allocations: 9.895 MB / 0.777 GB, free: 179 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00604/1.495, allocations: 414 kB / 0.7774 GB, free: 178.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00147/1.496, allocations: 348.8 kB / 0.7777 GB, free: 178.8 MB / 0.5606 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.008556/1.505, allocations: 4.244 MB / 0.7819 GB, free: 176.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001269/1.506, allocations: 0.5359 MB / 0.7824 GB, free: 176.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/1.517, allocations: 6.458 MB / 0.7887 GB, free: 172.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.696e-05/1.517, allocations: 44 kB / 0.7888 GB, free: 172.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.471e-05/1.517, allocations: 15.88 kB / 0.7888 GB, free: 172.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.276e-05/1.517, allocations: 18.89 kB / 0.7888 GB, free: 172.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02947/1.546, allocations: 15.69 MB / 0.8041 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/1.546, allocations: 4 kB / 0.8041 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003244/1.549, allocations: 0.755 MB / 0.8049 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001968/1.551, allocations: 0.7879 MB / 0.8056 GB, free: 158.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005523/1.552, allocations: 89.33 kB / 0.8057 GB, free: 158.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008572/1.561, allocations: 9.036 MB / 0.8145 GB, free: 148.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.561, allocations: 4 kB / 0.8145 GB, free: 148.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01308/1.574, allocations: 9.504 MB / 0.8238 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003016/1.577, allocations: 1.018 MB / 0.8248 GB, free: 138.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/1.578, allocations: 84.69 kB / 0.8249 GB, free: 138.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002429/1.58, allocations: 219.8 kB / 0.8251 GB, free: 138.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005739/1.581, allocations: 282.5 kB / 0.8254 GB, free: 137.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002323/1.581, allocations: 112 kB / 0.8255 GB, free: 137.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005468/1.586, allocations: 3.346 MB / 0.8287 GB, free: 134.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/1.586, allocations: 0 / 0.8287 GB, free: 134.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007746/1.594, allocations: 1.882 MB / 0.8306 GB, free: 132.6 MB / 0.5606 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.01345/1.608, allocations: 10.22 MB / 0.8406 GB, free: 122.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01079/1.618, allocations: 7.21 MB / 0.8476 GB, free: 115 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/1.618, allocations: 3.562 kB / 0.8476 GB, free: 115 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005005/1.623, allocations: 3.163 MB / 0.8507 GB, free: 111.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006675/1.63, allocations: 1.29 MB / 0.852 GB, free: 110.6 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1006/1.731, allocations: 65.31 MB / 0.9157 GB, free: 41.41 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00929/1.74, allocations: 7.328 MB / 0.9229 GB, free: 34.05 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005746/1.746, allocations: 2.141 MB / 0.925 GB, free: 31.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00619/1.752, allocations: 4.334 MB / 0.9292 GB, free: 27.57 MB / 0.5606 GB Notification: Performance of SimCode: time 1.072e-06/1.752, allocations: 0 / 0.9292 GB, free: 27.57 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.433/2.185, allocations: 154.3 MB / 1.08 GB, free: 101.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.77/26.96, allocations: 8.062 kB / 1.08 GB, free: 101.3 MB / 0.5606 GB " [Timeout remaining time 633] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 654] Reference file matches [Calling sys.exit(0), Time elapsed: 41.19869098998606]