Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.001766/0.001766, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002347/0.002347, allocations: 205 kB / 23.73 MB, free: 4.379 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.417/1.417, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 51.92 kB / 377.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2545, allocations: 53.36 MB / 431.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01726/0.2717, allocations: 13.8 MB / 444.9 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01021/0.2819, allocations: 5.069 MB / 450 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002723/0.2847, allocations: 127.2 kB / 450.1 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003599/0.2883, allocations: 1.075 MB / 451.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004725/0.293, allocations: 1.27 MB / 452.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002494/0.2955, allocations: 0.9037 MB / 453.3 MB, free: 292 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00499/0.3005, allocations: 3.652 MB / 457 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002683/0.3031, allocations: 1.917 MB / 458.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00267/0.3058, allocations: 1.795 MB / 460.7 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003081/0.3089, allocations: 2.145 MB / 462.8 MB, free: 6.684 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006423/0.3095, allocations: 480 kB / 463.3 MB, free: 6.215 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001331/0.3109, allocations: 0.6989 MB / 464 MB, free: 5.516 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.312, allocations: 1.157 MB / 465.2 MB, free: 4.355 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001783/0.3138, allocations: 1.622 MB / 466.8 MB, free: 2.727 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00688/0.3206, allocations: 6.341 MB / 473.1 MB, free: 12.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3206, allocations: 0 / 473.1 MB, free: 12.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3206, allocations: 4 kB / 473.1 MB, free: 12.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001297/0.3208, allocations: 0 / 473.1 MB, free: 12.36 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.00991/0.3307, allocations: 4.279 MB / 477.4 MB, free: 8.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.3307, allocations: 12.03 kB / 477.4 MB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000593/0.3313, allocations: 451.3 kB / 477.9 MB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002849/0.3342, allocations: 0.6232 MB / 478.5 MB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004315/0.3385, allocations: 2.214 MB / 480.7 MB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001918/0.3387, allocations: 238.7 kB / 480.9 MB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004614/0.3391, allocations: 315.9 kB / 481.3 MB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006648/0.3458, allocations: 4.126 MB / 485.4 MB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.02e-05/0.3459, allocations: 7.891 kB / 485.4 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002866/0.3461, allocations: 132 kB / 485.5 MB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001504/0.3463, allocations: 146.2 kB / 485.7 MB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00565/0.3519, allocations: 3.382 MB / 489 MB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01866/0.3706, allocations: 11.79 MB / 0.4891 GB, free: 48 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003479/0.3741, allocations: 1.745 MB / 0.4908 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001553/0.3756, allocations: 0.9298 MB / 0.4917 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004512/0.3802, allocations: 2.181 MB / 0.4938 GB, free: 11.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.707e-05/0.3802, allocations: 47.56 kB / 0.4939 GB, free: 11.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.855e-06/0.3802, allocations: 4 kB / 0.4939 GB, free: 11.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.0118/0.392, allocations: 5.826 MB / 0.4996 GB, free: 5.293 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.3921, allocations: 64.72 kB / 0.4996 GB, free: 5.219 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002817/0.3949, allocations: 1.94 MB / 0.5015 GB, free: 3.234 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.395, allocations: 49.7 kB / 0.5016 GB, free: 3.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001205/0.3962, allocations: 1.56 MB / 0.5031 GB, free: 1.605 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005119/0.3967, allocations: 0.5036 MB / 0.5036 GB, free: 1.098 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000579/0.3973, allocations: 335.4 kB / 0.5039 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3974, allocations: 305.1 kB / 0.5042 GB, free: 472 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.3987, allocations: 0.773 MB / 0.505 GB, free: 15.69 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0018/0.4005, allocations: 1.4 MB / 0.5063 GB, free: 14.01 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003132/0.4036, allocations: 2.323 MB / 0.5086 GB, free: 11.42 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/0.4036, allocations: 4 kB / 0.5086 GB, free: 11.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00419/0.4078, allocations: 2.49 MB / 0.511 GB, free: 8.906 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/0.4078, allocations: 12 kB / 0.511 GB, free: 8.895 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/0.4078, allocations: 20 kB / 0.5111 GB, free: 8.875 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003693/0.4082, allocations: 127.1 kB / 0.5112 GB, free: 8.742 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001792/0.41, allocations: 483.2 kB / 0.5116 GB, free: 8.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/0.4111, allocations: 1.291 MB / 0.5129 GB, free: 6.863 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/0.4127, allocations: 119.9 kB / 0.513 GB, free: 6.746 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.4128, allocations: 87.92 kB / 0.5131 GB, free: 6.66 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001738/0.4145, allocations: 0.9889 MB / 0.5141 GB, free: 5.66 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004071/0.4149, allocations: 210.6 kB / 0.5143 GB, free: 5.453 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003376/0.4183, allocations: 1.973 MB / 0.5162 GB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.4183, allocations: 16 kB / 0.5162 GB, free: 3.445 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.4183, allocations: 4 kB / 0.5162 GB, free: 3.441 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/0.4184, allocations: 7.969 kB / 0.5162 GB, free: 3.434 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008055/0.4264, allocations: 4.655 MB / 0.5208 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.4264, allocations: 4 kB / 0.5208 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/0.4278, allocations: 307.5 kB / 0.5211 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002978/0.4281, allocations: 90.53 kB / 0.5211 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.679e-05/0.4282, allocations: 31.98 kB / 0.5212 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001016/0.4292, allocations: 1.283 MB / 0.5224 GB, free: 12.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.4292, allocations: 4 kB / 0.5224 GB, free: 12.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004649/0.4338, allocations: 3.091 MB / 0.5255 GB, free: 9.688 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/0.4349, allocations: 394.6 kB / 0.5258 GB, free: 9.301 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002454/0.4352, allocations: 28 kB / 0.5259 GB, free: 9.273 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009408/0.4361, allocations: 75.91 kB / 0.5259 GB, free: 9.199 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.4363, allocations: 105 kB / 0.526 GB, free: 9.098 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.578e-05/0.4364, allocations: 36 kB / 0.5261 GB, free: 9.062 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001994/0.4384, allocations: 1.294 MB / 0.5273 GB, free: 7.746 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4384, allocations: 0 / 0.5273 GB, free: 7.746 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001673/0.4401, allocations: 0.5351 MB / 0.5278 GB, free: 7.211 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.005036/0.4451, allocations: 3.727 MB / 0.5315 GB, free: 3.426 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003433/0.4485, allocations: 1.976 MB / 0.5334 GB, free: 1.434 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.4485, allocations: 0 / 0.5334 GB, free: 1.434 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.45, allocations: 0.9528 MB / 0.5343 GB, free: 472 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2253/0.6753, allocations: 0.5215 MB / 0.5349 GB, free: 104.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02584/0.7012, allocations: 20.09 MB / 0.5545 GB, free: 91.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001437/0.7026, allocations: 1.719 MB / 0.5562 GB, free: 90.28 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00129/0.7039, allocations: 0.5125 MB / 0.5567 GB, free: 89.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001125/0.705, allocations: 1.187 MB / 0.5578 GB, free: 88.59 MB / 446.1 MB Notification: Performance of SimCode: time 1.553e-06/0.705, allocations: 4 kB / 0.5578 GB, free: 88.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.152/2.857, allocations: 53.87 MB / 0.6104 GB, free: 35.28 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/16.25, allocations: 0 / 0.6104 GB, free: 35.28 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 26.86381479501142]