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.001494/0.001494, allocations: 109.5 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.001772/0.001772, allocations: 183.1 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.359/1.359, 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.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.0016/0.0016, allocations: 47.92 kB / 370.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2573, allocations: 52.18 MB / 422.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0488/0.3061, allocations: 41.42 MB / 464.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02498/0.3311, allocations: 11.02 MB / 475.1 MB, free: 9.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01006/0.3412, allocations: 374 kB / 475.5 MB, free: 9.559 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02224/0.3634, allocations: 8.908 MB / 484.4 MB, free: 0.625 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01364/0.377, allocations: 3.74 MB / 488.1 MB, free: 12.87 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008236/0.3853, allocations: 2.463 MB / 490.6 MB, free: 10.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01979/0.4051, allocations: 13.43 MB / 0.4922 GB, free: 12.93 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03868/0.4437, allocations: 17.63 MB / 0.5094 GB, free: 11.15 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01315/0.4569, allocations: 7.141 MB / 0.5164 GB, free: 3.988 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01427/0.4712, allocations: 8.016 MB / 0.5242 GB, free: 11.95 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00584/0.477, allocations: 1.992 MB / 0.5262 GB, free: 9.953 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008396/0.4854, allocations: 2.394 MB / 0.5285 GB, free: 7.559 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007583/0.493, allocations: 4.056 MB / 0.5325 GB, free: 3.492 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.4648/0.9578, allocations: 7.76 MB / 0.5401 GB, free: 31.85 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03262/0.9904, allocations: 26.52 MB / 0.566 GB, free: 27.19 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.413e-06/0.9904, allocations: 0.75 kB / 0.566 GB, free: 27.19 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.9904, allocations: 4.219 kB / 0.566 GB, free: 27.19 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008995/0.9913, allocations: 0.625 kB / 0.566 GB, free: 27.19 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04893/1.04, allocations: 15.66 MB / 0.5812 GB, free: 19.21 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/1.04, allocations: 6.938 kB / 0.5813 GB, free: 19.21 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006646/1.047, allocations: 1.749 MB / 0.583 GB, free: 17.97 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03259/1.08, allocations: 6.291 MB / 0.5891 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01951/1.099, allocations: 8.311 MB / 0.5972 GB, free: 9.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008286/1.1, allocations: 0.9243 MB / 0.5981 GB, free: 9.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005759/1.106, allocations: 1.222 MB / 0.5993 GB, free: 8.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05532/1.161, allocations: 19.02 MB / 0.6179 GB, free: 4.934 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00061/1.162, allocations: 27.27 kB / 0.6179 GB, free: 4.91 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00495/1.166, allocations: 0.5042 MB / 0.6184 GB, free: 4.418 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000794/1.167, allocations: 0.6543 MB / 0.619 GB, free: 3.762 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04415/1.211, allocations: 17.04 MB / 0.6357 GB, free: 2.727 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1281/1.34, allocations: 58.66 MB / 0.693 GB, free: 7.828 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01965/1.359, allocations: 10.35 MB / 0.7031 GB, free: 15.15 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00689/1.366, allocations: 3.449 MB / 0.7065 GB, free: 11.69 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.022/1.388, allocations: 8.696 MB / 0.7149 GB, free: 3.117 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.5e-05/1.388, allocations: 73.39 kB / 0.715 GB, free: 3.035 MB / 0.545 GB Notification: Performance of pre-optimization done (n=361): time 5.971e-06/1.388, allocations: 4 kB / 0.715 GB, free: 3.031 MB / 0.545 GB Notification: Performance of matching and sorting (n=403): time 0.04364/1.432, allocations: 17.51 MB / 0.7321 GB, free: 1.57 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.833e-05/1.432, allocations: 94.58 kB / 0.7322 GB, free: 1.465 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0127/1.445, allocations: 5.252 MB / 0.7373 GB, free: 12.23 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009161/1.445, allocations: 85.7 kB / 0.7374 GB, free: 12.14 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.005763/1.451, allocations: 5.812 MB / 0.7431 GB, free: 6.32 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002227/1.453, allocations: 1.472 MB / 0.7445 GB, free: 4.867 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005016/1.458, allocations: 1.358 MB / 0.7459 GB, free: 3.5 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001498/1.459, allocations: 309.1 kB / 0.7462 GB, free: 3.195 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006448/1.465, allocations: 2.969 MB / 0.7491 GB, free: 228 kB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2531/1.718, allocations: 6.008 MB / 0.7549 GB, free: 206.4 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01269/1.731, allocations: 9.668 MB / 0.7644 GB, free: 202.1 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000234/1.731, allocations: 31.59 kB / 0.7644 GB, free: 202.1 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01964/1.751, allocations: 10.08 MB / 0.7742 GB, free: 198.5 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/1.751, allocations: 50.56 kB / 0.7743 GB, free: 198.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000189/1.751, allocations: 101.2 kB / 0.7744 GB, free: 198.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00241/1.753, allocations: 0.9511 MB / 0.7753 GB, free: 198.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00594/1.759, allocations: 1.625 MB / 0.7769 GB, free: 198.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/1.77, allocations: 9.898 MB / 0.7866 GB, free: 191.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005985/1.776, allocations: 419.4 kB / 0.787 GB, free: 191.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001394/1.777, allocations: 361.9 kB / 0.7873 GB, free: 191.4 MB / 0.5763 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.009142/1.787, allocations: 4.303 MB / 0.7915 GB, free: 189.4 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001485/1.788, allocations: 0.5651 MB / 0.7921 GB, free: 189.4 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01069/1.799, allocations: 6.641 MB / 0.7985 GB, free: 184.3 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-05/1.799, allocations: 40 kB / 0.7986 GB, free: 184.2 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.681e-05/1.799, allocations: 11.94 kB / 0.7986 GB, free: 184.2 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-05/1.799, allocations: 30.73 kB / 0.7986 GB, free: 184.2 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03341/1.832, allocations: 16.23 MB / 0.8145 GB, free: 171 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.873e-05/1.832, allocations: 7.938 kB / 0.8145 GB, free: 171 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003548/1.836, allocations: 0.776 MB / 0.8152 GB, free: 170.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002192/1.838, allocations: 0.7953 MB / 0.816 GB, free: 169.7 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008318/1.839, allocations: 79.8 kB / 0.8161 GB, free: 169.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009376/1.848, allocations: 9.06 MB / 0.8249 GB, free: 161 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/1.848, allocations: 9.297 kB / 0.8249 GB, free: 160.9 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0159/1.864, allocations: 9.797 MB / 0.8345 GB, free: 151.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003696/1.868, allocations: 1.068 MB / 0.8356 GB, free: 150.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001771/1.87, allocations: 76.94 kB / 0.8356 GB, free: 150.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003696/1.873, allocations: 225.5 kB / 0.8358 GB, free: 150.1 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001016/1.874, allocations: 290.6 kB / 0.8361 GB, free: 149.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005105/1.875, allocations: 120 kB / 0.8362 GB, free: 149.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006678/1.882, allocations: 3.497 MB / 0.8396 GB, free: 146.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 6.51e-07/1.882, allocations: 0 / 0.8396 GB, free: 146.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.00911/1.891, allocations: 1.933 MB / 0.8415 GB, free: 144.3 MB / 0.5763 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.01596/1.907, allocations: 10.54 MB / 0.8518 GB, free: 133.6 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01255/1.919, allocations: 7.374 MB / 0.859 GB, free: 126.2 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-05/1.919, allocations: 4 kB / 0.859 GB, free: 126.2 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.0062/1.925, allocations: 3.227 MB / 0.8622 GB, free: 122.9 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00854/1.934, allocations: 1.394 MB / 0.8635 GB, free: 121.6 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1269/2.061, allocations: 67.53 MB / 0.9295 GB, free: 50.07 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01463/2.075, allocations: 7.428 MB / 0.9367 GB, free: 42.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007431/2.083, allocations: 2.194 MB / 0.9389 GB, free: 40.4 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007971/2.091, allocations: 4.498 MB / 0.9433 GB, free: 35.9 MB / 0.5763 GB Notification: Performance of SimCode: time 2.635e-06/2.091, allocations: 8 kB / 0.9433 GB, free: 35.89 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4803/2.571, allocations: 160.7 MB / 1.1 GB, free: 105.9 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.46/28.03, allocations: 7.031 kB / 1.1 GB, free: 105.9 MB / 0.5763 GB " [Timeout remaining time 632] (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/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/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: 44.41011685994454]