Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 115.9 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.453/1.453, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_1_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_1_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.0017/0.0017, allocations: 47.94 kB / 377.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2482, allocations: 53.37 MB / 431.2 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04875/0.297, allocations: 40.33 MB / 471.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02482/0.3218, allocations: 10.7 MB / 482.2 MB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007731/0.3295, allocations: 373.9 kB / 482.6 MB, free: 3.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02172/0.3513, allocations: 8.663 MB / 491.2 MB, free: 10.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01323/0.3645, allocations: 3.572 MB / 494.8 MB, free: 6.969 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008388/0.3729, allocations: 2.417 MB / 497.2 MB, free: 4.555 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0199/0.3928, allocations: 13.05 MB / 0.4983 GB, free: 7.461 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03656/0.4293, allocations: 17.36 MB / 0.5153 GB, free: 5.945 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01289/0.4422, allocations: 6.99 MB / 0.5221 GB, free: 14.94 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.014/0.4562, allocations: 7.931 MB / 0.5299 GB, free: 6.98 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005571/0.4618, allocations: 1.953 MB / 0.5318 GB, free: 5.027 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008079/0.4699, allocations: 2.375 MB / 0.5341 GB, free: 2.652 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4462/0.9161, allocations: 3.965 MB / 0.538 GB, free: 31.43 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01523/0.9313, allocations: 7.564 MB / 0.5453 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02883/0.9601, allocations: 25.97 MB / 0.5707 GB, free: 24.69 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.9601, allocations: 0 / 0.5707 GB, free: 24.69 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.9601, allocations: 0 / 0.5707 GB, free: 24.69 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007939/0.9609, allocations: 0 / 0.5707 GB, free: 24.69 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.04496/1.006, allocations: 15.25 MB / 0.5856 GB, free: 14.95 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/1.006, allocations: 14.53 kB / 0.5856 GB, free: 14.95 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006747/1.013, allocations: 1.714 MB / 0.5873 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03226/1.045, allocations: 6.122 MB / 0.5933 GB, free: 10.92 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02016/1.065, allocations: 8.115 MB / 0.6012 GB, free: 5.633 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007891/1.066, allocations: 0.9088 MB / 0.6021 GB, free: 4.734 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005265/1.071, allocations: 1.2 MB / 0.6033 GB, free: 3.547 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05477/1.126, allocations: 18.69 MB / 0.6215 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005967/1.127, allocations: 19.91 kB / 0.6215 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004524/1.131, allocations: 0.4935 MB / 0.622 GB, free: 304 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007447/1.132, allocations: 0.6398 MB / 0.6226 GB, free: 15.66 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04288/1.175, allocations: 16.81 MB / 0.639 GB, free: 14.84 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1221/1.297, allocations: 57.24 MB / 0.6949 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02044/1.317, allocations: 10.37 MB / 0.7051 GB, free: 12.66 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007043/1.324, allocations: 3.409 MB / 0.7084 GB, free: 9.234 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01927/1.344, allocations: 8.549 MB / 0.7167 GB, free: 0.793 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.543e-05/1.344, allocations: 80.72 kB / 0.7168 GB, free: 0.707 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 8.325e-06/1.344, allocations: 3.984 kB / 0.7168 GB, free: 0.7031 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.04123/1.385, allocations: 17.28 MB / 0.7337 GB, free: 15.46 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.614e-05/1.385, allocations: 94.47 kB / 0.7338 GB, free: 15.35 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009774/1.395, allocations: 5.038 MB / 0.7387 GB, free: 10.32 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007539/1.395, allocations: 93.64 kB / 0.7388 GB, free: 10.22 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004799/1.4, allocations: 5.635 MB / 0.7443 GB, free: 4.574 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001971/1.402, allocations: 1.419 MB / 0.7457 GB, free: 3.172 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002635/1.405, allocations: 1.331 MB / 0.747 GB, free: 1.832 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001319/1.405, allocations: 301.1 kB / 0.7473 GB, free: 1.535 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2196/1.625, allocations: 2.91 MB / 0.7501 GB, free: 200.9 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007141/1.632, allocations: 5.878 MB / 0.7559 GB, free: 197.2 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01164/1.643, allocations: 9.458 MB / 0.7651 GB, free: 192.9 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000163/1.644, allocations: 29.78 kB / 0.7651 GB, free: 192.9 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01754/1.661, allocations: 9.875 MB / 0.7748 GB, free: 189.3 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.00012/1.661, allocations: 49.28 kB / 0.7748 GB, free: 189.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001763/1.661, allocations: 101.8 kB / 0.7749 GB, free: 189.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002362/1.664, allocations: 0.937 MB / 0.7758 GB, free: 189.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005707/1.669, allocations: 1.59 MB / 0.7774 GB, free: 188.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/1.68, allocations: 9.88 MB / 0.787 GB, free: 182.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005695/1.685, allocations: 413.8 kB / 0.7874 GB, free: 182.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00112/1.686, allocations: 356.8 kB / 0.7878 GB, free: 182.3 MB / 0.5763 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.007684/1.694, allocations: 4.248 MB / 0.7919 GB, free: 180.2 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00127/1.695, allocations: 0.5362 MB / 0.7924 GB, free: 180.2 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01137/1.707, allocations: 6.453 MB / 0.7987 GB, free: 177.5 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.9e-05/1.707, allocations: 40 kB / 0.7988 GB, free: 177.5 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.721e-05/1.707, allocations: 11.94 kB / 0.7988 GB, free: 177.5 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.153e-05/1.707, allocations: 26.97 kB / 0.7988 GB, free: 177.5 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03012/1.737, allocations: 15.75 MB / 0.8142 GB, free: 164.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.586e-05/1.737, allocations: 4.75 kB / 0.8142 GB, free: 164.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003125/1.74, allocations: 0.7506 MB / 0.8149 GB, free: 164.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00207/1.742, allocations: 0.7892 MB / 0.8157 GB, free: 163.5 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004826/1.743, allocations: 89.41 kB / 0.8158 GB, free: 163.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008616/1.751, allocations: 9.045 MB / 0.8246 GB, free: 154.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.751, allocations: 8.188 kB / 0.8246 GB, free: 154.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01313/1.764, allocations: 9.522 MB / 0.8339 GB, free: 145.4 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003003/1.767, allocations: 1.028 MB / 0.8349 GB, free: 144.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001253/1.769, allocations: 68.84 kB / 0.835 GB, free: 144.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0029/1.772, allocations: 227.7 kB / 0.8352 GB, free: 144.1 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006638/1.772, allocations: 278.5 kB / 0.8355 GB, free: 143.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002867/1.773, allocations: 112 kB / 0.8356 GB, free: 143.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005345/1.778, allocations: 3.37 MB / 0.8389 GB, free: 140.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 9e-08/1.778, allocations: 0 / 0.8389 GB, free: 140.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007428/1.785, allocations: 1.879 MB / 0.8407 GB, free: 138.5 MB / 0.5763 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.01415/1.8, allocations: 10.24 MB / 0.8507 GB, free: 128.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01103/1.811, allocations: 7.232 MB / 0.8578 GB, free: 120.9 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.811, allocations: 0 / 0.8578 GB, free: 120.9 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005321/1.816, allocations: 3.175 MB / 0.8609 GB, free: 117.7 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006957/1.823, allocations: 1.312 MB / 0.8622 GB, free: 116.4 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1056/1.928, allocations: 65.28 MB / 0.9259 GB, free: 47.28 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01145/1.94, allocations: 7.332 MB / 0.9331 GB, free: 39.91 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006029/1.946, allocations: 2.156 MB / 0.9352 GB, free: 37.75 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006735/1.953, allocations: 4.35 MB / 0.9394 GB, free: 33.4 MB / 0.5763 GB Notification: Performance of SimCode: time 1.242e-06/1.953, allocations: 0 / 0.9394 GB, free: 33.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.473/2.426, allocations: 154.7 MB / 1.09 GB, free: 115.1 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.93/29.35, allocations: 14.73 kB / 1.09 GB, free: 115.1 MB / 0.5763 GB " [Timeout remaining time 630] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_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_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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 653] Reference file matches [Calling sys.exit(0), Time elapsed: 45.64132322999649]