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.001306/0.001306, 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.001333/0.001333, allocations: 194.6 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.367/1.367, allocations: 225.7 MB / 252.5 MB, free: 12.79 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.001571/0.001571, allocations: 55.91 kB / 370.4 MB, free: 9.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2468, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04211/0.2889, allocations: 35.3 MB / 457.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02377/0.3127, allocations: 10.65 MB / 468.6 MB, free: 232 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01001/0.3227, allocations: 382 kB / 469 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02268/0.3454, allocations: 8.248 MB / 477.2 MB, free: 7.582 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01331/0.3587, allocations: 3.647 MB / 480.8 MB, free: 3.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007912/0.3666, allocations: 2.372 MB / 483.2 MB, free: 1.551 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02047/0.3871, allocations: 13.42 MB / 496.6 MB, free: 4.086 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03093/0.418, allocations: 17.37 MB / 0.502 GB, free: 2.562 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01239/0.4304, allocations: 7.165 MB / 0.509 GB, free: 11.38 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01535/0.4457, allocations: 7.586 MB / 0.5164 GB, free: 3.762 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005854/0.4516, allocations: 1.988 MB / 0.5183 GB, free: 1.773 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007412/0.459, allocations: 2.355 MB / 0.5206 GB, free: 15.42 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005838/0.4648, allocations: 4.052 MB / 0.5246 GB, free: 11.36 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01162/0.4765, allocations: 6.062 MB / 0.5305 GB, free: 5.273 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4239/0.9003, allocations: 26.62 MB / 0.5565 GB, free: 42.96 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.9003, allocations: 0 / 0.5565 GB, free: 42.96 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.696e-06/0.9003, allocations: 0 / 0.5565 GB, free: 42.96 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008773/0.9012, allocations: 6.844 kB / 0.5565 GB, free: 42.96 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.04891/0.9501, allocations: 15.63 MB / 0.5718 GB, free: 36.04 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.9502, allocations: 10.34 kB / 0.5718 GB, free: 36.04 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007592/0.9578, allocations: 1.759 MB / 0.5735 GB, free: 35.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03398/0.9917, allocations: 6.282 MB / 0.5796 GB, free: 32.68 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01822/1.01, allocations: 8.27 MB / 0.5877 GB, free: 27.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008968/1.011, allocations: 0.9253 MB / 0.5886 GB, free: 27.19 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006544/1.017, allocations: 1.23 MB / 0.5898 GB, free: 26.78 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04641/1.064, allocations: 19.25 MB / 0.6086 GB, free: 8.609 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003517/1.064, allocations: 31.45 kB / 0.6086 GB, free: 8.582 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002126/1.066, allocations: 0.5049 MB / 0.6091 GB, free: 8.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004256/1.067, allocations: 0.6504 MB / 0.6097 GB, free: 7.438 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03652/1.103, allocations: 16.98 MB / 0.6263 GB, free: 6.453 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1095/1.213, allocations: 53.78 MB / 0.6788 GB, free: 464 kB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01865/1.231, allocations: 10.26 MB / 0.6889 GB, free: 7.867 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006205/1.238, allocations: 3.448 MB / 0.6922 GB, free: 4.41 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01803/1.256, allocations: 7.846 MB / 0.6999 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.929e-05/1.256, allocations: 69.41 kB / 0.7 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=361): time 6.432e-06/1.256, allocations: 4 kB / 0.7 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=403): time 0.03816/1.294, allocations: 17.51 MB / 0.7171 GB, free: 11.14 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.219e-05/1.294, allocations: 92.77 kB / 0.7171 GB, free: 11.04 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008852/1.303, allocations: 5.422 MB / 0.7224 GB, free: 5.633 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006672/1.303, allocations: 97.7 kB / 0.7225 GB, free: 5.531 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004727/1.308, allocations: 5.809 MB / 0.7282 GB, free: 15.71 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.00184/1.31, allocations: 1.471 MB / 0.7296 GB, free: 14.26 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002309/1.312, allocations: 1.358 MB / 0.731 GB, free: 12.89 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 0.0001396/1.312, allocations: 305.1 kB / 0.7313 GB, free: 12.59 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004997/1.317, allocations: 2.973 MB / 0.7342 GB, free: 9.613 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007912/1.325, allocations: 6.067 MB / 0.7401 GB, free: 2.156 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2255/1.551, allocations: 9.658 MB / 0.7495 GB, free: 190.4 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001011/1.551, allocations: 34.53 kB / 0.7496 GB, free: 190.4 MB / 0.5607 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01538/1.566, allocations: 10.08 MB / 0.7594 GB, free: 187.7 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 6.507e-05/1.566, allocations: 51.62 kB / 0.7594 GB, free: 187.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/1.567, allocations: 101.1 kB / 0.7595 GB, free: 187.7 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002171/1.569, allocations: 0.9422 MB / 0.7605 GB, free: 187.5 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00547/1.574, allocations: 1.633 MB / 0.7621 GB, free: 187.3 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01007/1.584, allocations: 9.783 MB / 0.7716 GB, free: 180.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005848/1.59, allocations: 418.7 kB / 0.772 GB, free: 180.7 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009557/1.591, allocations: 362 kB / 0.7724 GB, free: 180.7 MB / 0.5607 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.006307/1.597, allocations: 4.301 MB / 0.7766 GB, free: 178.6 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001104/1.598, allocations: 0.5668 MB / 0.7771 GB, free: 178.6 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009387/1.608, allocations: 6.644 MB / 0.7836 GB, free: 173.1 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-05/1.608, allocations: 44 kB / 0.7836 GB, free: 173.1 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/1.608, allocations: 11.94 kB / 0.7837 GB, free: 173.1 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-05/1.608, allocations: 18.8 kB / 0.7837 GB, free: 173.1 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02335/1.631, allocations: 15.44 MB / 0.7988 GB, free: 160.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/1.631, allocations: 11.97 kB / 0.7988 GB, free: 160.1 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00294/1.634, allocations: 0.7741 MB / 0.7995 GB, free: 159.5 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001853/1.636, allocations: 0.7861 MB / 0.8003 GB, free: 158.9 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002355/1.636, allocations: 87.69 kB / 0.8004 GB, free: 158.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008084/1.644, allocations: 8.936 MB / 0.8091 GB, free: 150.4 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.644, allocations: 4 kB / 0.8091 GB, free: 150.4 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01189/1.656, allocations: 9.803 MB / 0.8187 GB, free: 141 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003273/1.66, allocations: 1.072 MB / 0.8197 GB, free: 140 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001089/1.661, allocations: 76 kB / 0.8198 GB, free: 140 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002497/1.663, allocations: 223.7 kB / 0.82 GB, free: 139.7 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005279/1.664, allocations: 298.6 kB / 0.8203 GB, free: 139.5 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002449/1.664, allocations: 117.6 kB / 0.8204 GB, free: 139.3 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004781/1.669, allocations: 3.497 MB / 0.8238 GB, free: 135.9 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.1e-07/1.669, allocations: 0 / 0.8238 GB, free: 135.9 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006903/1.676, allocations: 1.936 MB / 0.8257 GB, free: 133.9 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.01198/1.688, allocations: 10.52 MB / 0.836 GB, free: 123.3 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.009545/1.697, allocations: 7.383 MB / 0.8432 GB, free: 115.9 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/1.697, allocations: 3.75 kB / 0.8432 GB, free: 115.9 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004191/1.701, allocations: 3.229 MB / 0.8463 GB, free: 112.6 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00618/1.708, allocations: 1.389 MB / 0.8477 GB, free: 111.3 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09102/1.799, allocations: 67.53 MB / 0.9136 GB, free: 39.78 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009582/1.808, allocations: 7.029 MB / 0.9205 GB, free: 32.7 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005801/1.814, allocations: 2.191 MB / 0.9227 GB, free: 30.5 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005878/1.82, allocations: 4.506 MB / 0.9271 GB, free: 26 MB / 0.5607 GB Notification: Performance of SimCode: time 1.102e-06/1.82, allocations: 0 / 0.9271 GB, free: 26 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3953/2.215, allocations: 158.6 MB / 1.082 GB, free: 95.4 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.51/22.73, allocations: 11.25 kB / 1.082 GB, free: 95.4 MB / 0.5607 GB " [Timeout remaining time 637] (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 653] Reference file matches [Calling sys.exit(0), Time elapsed: 40.39452270185575]