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.SMPM_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.001294/0.001294, allocations: 124.7 kB / 17.79 MB, free: 5.246 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.00128/0.00128, allocations: 186.9 kB / 20.73 MB, free: 2.316 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.423/1.423, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.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.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 55.91 kB / 365.7 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1175, allocations: 52.13 MB / 417.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2601/0.3776, allocations: 41.34 MB / 459.2 MB, free: 8.785 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02743/0.405, allocations: 10.99 MB / 470.2 MB, free: 6.121 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01146/0.4165, allocations: 315 kB / 470.5 MB, free: 6.055 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02098/0.4375, allocations: 8.882 MB / 479.3 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01598/0.4534, allocations: 3.657 MB / 483 MB, free: 14.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01038/0.4638, allocations: 2.423 MB / 485.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02219/0.486, allocations: 13.33 MB / 498.7 MB, free: 4.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04219/0.5282, allocations: 19.88 MB / 0.5065 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01414/0.5423, allocations: 6.993 MB / 0.5133 GB, free: 12.16 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01522/0.5576, allocations: 7.992 MB / 0.5211 GB, free: 4.145 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006314/0.5639, allocations: 1.992 MB / 0.523 GB, free: 2.152 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01036/0.5742, allocations: 2.39 MB / 0.5254 GB, free: 15.76 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008249/0.5825, allocations: 4.048 MB / 0.5293 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.016/0.5985, allocations: 7.766 MB / 0.5369 GB, free: 3.906 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0388/0.6373, allocations: 26.52 MB / 0.5628 GB, free: 9.301 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.6373, allocations: 3.938 kB / 0.5628 GB, free: 9.297 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.6373, allocations: 0 / 0.5628 GB, free: 9.297 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007861/0.6381, allocations: 0 / 0.5628 GB, free: 9.297 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04929/0.6874, allocations: 15.73 MB / 0.5782 GB, free: 9.441 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.6874, allocations: 8.031 kB / 0.5782 GB, free: 9.434 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006389/0.6938, allocations: 1.756 MB / 0.5799 GB, free: 7.664 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03544/0.7292, allocations: 6.287 MB / 0.586 GB, free: 1.363 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02482/0.7541, allocations: 8.298 MB / 0.5941 GB, free: 8.988 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001203/0.7553, allocations: 0.9272 MB / 0.595 GB, free: 8.059 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005648/0.7609, allocations: 1.219 MB / 0.5962 GB, free: 6.84 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05505/0.816, allocations: 19.02 MB / 0.6148 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006981/0.8167, allocations: 19.91 kB / 0.6148 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004108/0.8208, allocations: 0.5078 MB / 0.6153 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008252/0.8216, allocations: 0.6582 MB / 0.616 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04362/0.8652, allocations: 17.04 MB / 0.6326 GB, free: 1.469 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5743/1.44, allocations: 59.96 MB / 0.6912 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02299/1.463, allocations: 32.71 MB / 0.7231 GB, free: 78.61 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006445/1.469, allocations: 3.452 MB / 0.7265 GB, free: 76.82 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01997/1.489, allocations: 8.888 MB / 0.7352 GB, free: 70.95 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.476e-05/1.489, allocations: 75.78 kB / 0.7352 GB, free: 70.88 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 8.285e-06/1.489, allocations: 0 / 0.7352 GB, free: 70.88 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.04123/1.53, allocations: 17.9 MB / 0.7527 GB, free: 55.16 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/1.53, allocations: 90.58 kB / 0.7528 GB, free: 55.06 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01011/1.54, allocations: 5.254 MB / 0.7579 GB, free: 49.89 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007661/1.541, allocations: 85.7 kB / 0.758 GB, free: 49.8 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003252/1.544, allocations: 5.81 MB / 0.7637 GB, free: 44.51 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001599/1.546, allocations: 1.474 MB / 0.7651 GB, free: 43.05 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004029/1.55, allocations: 1.358 MB / 0.7665 GB, free: 41.69 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.297e-05/1.55, allocations: 301.1 kB / 0.7667 GB, free: 41.39 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005007/1.555, allocations: 2.969 MB / 0.7696 GB, free: 38.42 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007599/1.563, allocations: 6.013 MB / 0.7755 GB, free: 30.97 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/1.574, allocations: 9.667 MB / 0.785 GB, free: 19.83 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.958e-05/1.574, allocations: 28 kB / 0.785 GB, free: 19.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01863/1.593, allocations: 10.09 MB / 0.7948 GB, free: 9.652 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001279/1.593, allocations: 48 kB / 0.7949 GB, free: 9.605 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001714/1.593, allocations: 100 kB / 0.795 GB, free: 9.508 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00244/1.596, allocations: 0.945 MB / 0.7959 GB, free: 8.547 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005647/1.601, allocations: 1.626 MB / 0.7975 GB, free: 6.918 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01265/1.614, allocations: 10.2 MB / 0.8074 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006333/1.62, allocations: 419.5 kB / 0.8078 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001613/1.622, allocations: 367.9 kB / 0.8082 GB, free: 11.53 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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.01086/1.633, allocations: 4.309 MB / 0.8124 GB, free: 7.203 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002161/1.635, allocations: 0.5628 MB / 0.813 GB, free: 6.637 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01792/1.653, allocations: 6.635 MB / 0.8194 GB, free: 15.95 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.145e-05/1.653, allocations: 40 kB / 0.8195 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.852e-05/1.653, allocations: 8 kB / 0.8195 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001128/1.653, allocations: 23.92 kB / 0.8195 GB, free: 15.88 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04405/1.697, allocations: 16.21 MB / 0.8353 GB, free: 15.62 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.625e-05/1.697, allocations: 4 kB / 0.8353 GB, free: 15.62 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003851/1.701, allocations: 0.761 MB / 0.8361 GB, free: 14.86 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002659/1.704, allocations: 0.8073 MB / 0.8369 GB, free: 14.04 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000853/1.705, allocations: 91.97 kB / 0.837 GB, free: 13.95 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01347/1.718, allocations: 9.357 MB / 0.8461 GB, free: 4.172 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.059e-05/1.718, allocations: 7.938 kB / 0.8461 GB, free: 4.164 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2954/2.013, allocations: 9.793 MB / 0.8557 GB, free: 180.4 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004259/2.018, allocations: 1.121 MB / 0.8568 GB, free: 180.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00193/2.02, allocations: 79.2 kB / 0.8568 GB, free: 180.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004211/2.024, allocations: 230.3 kB / 0.8571 GB, free: 180.3 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00124/2.025, allocations: 275.4 kB / 0.8573 GB, free: 180.3 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000577/2.026, allocations: 117.6 kB / 0.8574 GB, free: 180.3 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.009446/2.035, allocations: 3.5 MB / 0.8608 GB, free: 179.6 MB / 0.5607 GB Notification: Performance of sort global known variables: time 8e-08/2.035, allocations: 0.9062 kB / 0.8608 GB, free: 179.6 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01071/2.046, allocations: 1.934 MB / 0.8627 GB, free: 179.4 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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,62.5%), (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.02274/2.069, allocations: 10.52 MB / 0.873 GB, free: 174.9 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01509/2.084, allocations: 7.532 MB / 0.8804 GB, free: 171.8 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.599e-05/2.084, allocations: 0 / 0.8804 GB, free: 171.8 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006892/2.091, allocations: 3.379 MB / 0.8837 GB, free: 170.2 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01053/2.101, allocations: 1.394 MB / 0.885 GB, free: 169.7 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1339/2.235, allocations: 67.39 MB / 0.9508 GB, free: 113.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01421/2.249, allocations: 7.42 MB / 0.9581 GB, free: 106 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.007728/2.257, allocations: 2.194 MB / 0.9602 GB, free: 103.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007246/2.264, allocations: 4.498 MB / 0.9646 GB, free: 99.27 MB / 0.5607 GB Notification: Performance of SimCode: time 2.184e-06/2.264, allocations: 0 / 0.9646 GB, free: 99.27 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.61/2.874, allocations: 154.9 MB / 1.116 GB, free: 153.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.32/27.2, allocations: 14.78 kB / 1.116 GB, free: 153.8 MB / 0.5607 GB " [Timeout remaining time 633] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 652] Reference file matches [Calling sys.exit(0), Time elapsed: 46.533190136775374]