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.001785/0.001785, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002136/0.002136, allocations: 191 kB / 23.71 MB, free: 4.406 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.384/1.384, allocations: 225.7 MB / 252.5 MB, free: 12.82 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.001616/0.001616, allocations: 47.92 kB / 370.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2421, allocations: 52.18 MB / 422.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04292/0.2851, allocations: 33.84 MB / 456.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02448/0.3095, allocations: 10.13 MB / 466.6 MB, free: 2.211 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007681/0.3172, allocations: 370 kB / 467 MB, free: 1.848 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02121/0.3384, allocations: 8.019 MB / 475 MB, free: 9.809 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01333/0.3518, allocations: 3.472 MB / 478.4 MB, free: 6.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007932/0.3597, allocations: 2.307 MB / 480.8 MB, free: 4.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01898/0.3787, allocations: 12.96 MB / 493.7 MB, free: 7.008 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03559/0.4143, allocations: 17.12 MB / 0.4989 GB, free: 5.738 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01306/0.4273, allocations: 6.978 MB / 0.5057 GB, free: 14.74 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01387/0.4412, allocations: 7.423 MB / 0.5129 GB, free: 7.293 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00547/0.4467, allocations: 1.957 MB / 0.5148 GB, free: 5.336 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008576/0.4553, allocations: 2.316 MB / 0.5171 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006498/0.4618, allocations: 3.967 MB / 0.521 GB, free: 15.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01112/0.4729, allocations: 5.895 MB / 0.5267 GB, free: 9.125 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2215/0.6944, allocations: 26.03 MB / 0.5521 GB, free: 43.95 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.6944, allocations: 0 / 0.5521 GB, free: 43.95 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.6944, allocations: 0 / 0.5521 GB, free: 43.95 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006123/0.695, allocations: 0 / 0.5521 GB, free: 43.95 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.04104/0.7361, allocations: 15.2 MB / 0.567 GB, free: 37.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.7361, allocations: 10.09 kB / 0.567 GB, free: 37.25 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006013/0.7421, allocations: 1.713 MB / 0.5687 GB, free: 36.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03314/0.7752, allocations: 6.202 MB / 0.5747 GB, free: 34.36 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0165/0.7917, allocations: 8.079 MB / 0.5826 GB, free: 29.66 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005776/0.7923, allocations: 0.9035 MB / 0.5835 GB, free: 29.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003909/0.7962, allocations: 1.191 MB / 0.5847 GB, free: 28.86 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03706/0.8333, allocations: 18.89 MB / 0.6031 GB, free: 11.95 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004403/0.8337, allocations: 23.27 kB / 0.6031 GB, free: 11.93 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003252/0.837, allocations: 0.4902 MB / 0.6036 GB, free: 11.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000472/0.8375, allocations: 0.6382 MB / 0.6042 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03294/0.8704, allocations: 16.71 MB / 0.6206 GB, free: 10.08 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1081/0.9785, allocations: 52.37 MB / 0.6717 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01932/0.9978, allocations: 10.14 MB / 0.6816 GB, free: 13 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006618/1.004, allocations: 3.375 MB / 0.6849 GB, free: 9.617 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01721/1.022, allocations: 7.649 MB / 0.6924 GB, free: 2.078 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.154e-05/1.022, allocations: 73.25 kB / 0.6924 GB, free: 1.996 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=349): time 6.172e-06/1.022, allocations: 0 / 0.6924 GB, free: 1.996 MB / 0.5137 GB Notification: Performance of matching and sorting (n=389): time 0.03971/1.061, allocations: 17.23 MB / 0.7093 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.796e-05/1.062, allocations: 90.47 kB / 0.7093 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008558/1.07, allocations: 5.197 MB / 0.7144 GB, free: 11.51 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007459/1.071, allocations: 85.7 kB / 0.7145 GB, free: 11.42 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005084/1.076, allocations: 5.623 MB / 0.72 GB, free: 5.781 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001991/1.078, allocations: 1.428 MB / 0.7214 GB, free: 4.371 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002499/1.08, allocations: 1.327 MB / 0.7227 GB, free: 3.035 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001351/1.081, allocations: 304.7 kB / 0.723 GB, free: 2.738 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005037/1.086, allocations: 2.902 MB / 0.7258 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007751/1.093, allocations: 5.928 MB / 0.7316 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01365/1.107, allocations: 9.441 MB / 0.7408 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.761e-05/1.107, allocations: 28 kB / 0.7408 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01892/1.126, allocations: 9.849 MB / 0.7505 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.323e-05/1.126, allocations: 54.12 kB / 0.7505 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001863/1.126, allocations: 100 kB / 0.7506 GB, free: 4.609 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002669/1.129, allocations: 0.9365 MB / 0.7515 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005957/1.135, allocations: 1.58 MB / 0.7531 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2231/1.358, allocations: 9.761 MB / 0.7626 GB, free: 205.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005237/1.363, allocations: 407.6 kB / 0.763 GB, free: 205.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008434/1.364, allocations: 353 kB / 0.7633 GB, free: 205.2 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.006915/1.371, allocations: 4.248 MB / 0.7675 GB, free: 204.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00123/1.372, allocations: 0.5405 MB / 0.768 GB, free: 204.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01007/1.382, allocations: 6.458 MB / 0.7743 GB, free: 201.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.376e-05/1.382, allocations: 42.41 kB / 0.7743 GB, free: 201.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/1.382, allocations: 7.75 kB / 0.7744 GB, free: 201.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-05/1.382, allocations: 19.45 kB / 0.7744 GB, free: 201.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02367/1.406, allocations: 14.96 MB / 0.789 GB, free: 196 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/1.406, allocations: 3.938 kB / 0.789 GB, free: 196 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002956/1.409, allocations: 0.7493 MB / 0.7897 GB, free: 195.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001983/1.411, allocations: 0.7788 MB / 0.7905 GB, free: 195.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003032/1.411, allocations: 90.36 kB / 0.7906 GB, free: 195.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008466/1.42, allocations: 8.92 MB / 0.7993 GB, free: 188.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.42, allocations: 7.938 kB / 0.7993 GB, free: 188.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01251/1.432, allocations: 9.497 MB / 0.8086 GB, free: 180.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0028/1.435, allocations: 1.026 MB / 0.8096 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001014/1.436, allocations: 68 kB / 0.8096 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002611/1.439, allocations: 225.3 kB / 0.8098 GB, free: 179.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005127/1.439, allocations: 276.9 kB / 0.8101 GB, free: 179.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002469/1.439, allocations: 114 kB / 0.8102 GB, free: 179 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004516/1.444, allocations: 3.347 MB / 0.8135 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/1.444, allocations: 4 kB / 0.8135 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006358/1.45, allocations: 1.871 MB / 0.8153 GB, free: 174.3 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.01273/1.463, allocations: 10.23 MB / 0.8253 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01055/1.474, allocations: 7.215 MB / 0.8324 GB, free: 158 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/1.474, allocations: 0 / 0.8324 GB, free: 158 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004866/1.478, allocations: 3.169 MB / 0.8354 GB, free: 154.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007873/1.486, allocations: 1.278 MB / 0.8367 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0956/1.582, allocations: 65.26 MB / 0.9004 GB, free: 84.47 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008207/1.59, allocations: 6.93 MB / 0.9072 GB, free: 77.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005843/1.596, allocations: 2.148 MB / 0.9093 GB, free: 75.34 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006607/1.603, allocations: 4.326 MB / 0.9135 GB, free: 71.02 MB / 0.5762 GB Notification: Performance of SimCode: time 1.603e-06/1.603, allocations: 0 / 0.9135 GB, free: 71.02 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4009/2.003, allocations: 151.9 MB / 1.062 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.79/22.8, allocations: 13.45 kB / 1.062 GB, free: 163.5 MB / 0.5762 GB " [Timeout remaining time 636] (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: 42.51758435321972]