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.0009072/0.0009072, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008384/0.0008384, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9221/0.9221, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] 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 1.203e-06/1.203e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.459e-05/1.579e-05, allocations: 10.22 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01075/0.01076, allocations: 13.79 MB / 338.4 MB, free: 2.047 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007463/0.01823, allocations: 5.097 MB / 343.5 MB, free: 12.93 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001927/0.02015, allocations: 123.2 kB / 343.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002104/0.02226, allocations: 1.071 MB / 344.7 MB, free: 11.73 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002766/0.02502, allocations: 1.316 MB / 346 MB, free: 10.4 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001332/0.02636, allocations: 0.9038 MB / 346.9 MB, free: 9.496 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002874/0.02923, allocations: 3.804 MB / 350.7 MB, free: 5.68 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001986/0.03122, allocations: 1.846 MB / 352.6 MB, free: 3.766 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002366/0.03358, allocations: 2.612 MB / 355.2 MB, free: 1.148 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001686/0.03527, allocations: 1.738 MB / 356.9 MB, free: 15.41 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004526/0.03572, allocations: 476 kB / 357.4 MB, free: 14.94 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000907/0.03663, allocations: 0.687 MB / 358.1 MB, free: 14.25 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006573/0.03729, allocations: 1.176 MB / 359.2 MB, free: 13.07 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001487/0.03877, allocations: 1.38 MB / 360.6 MB, free: 11.69 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004817/0.04359, allocations: 6.364 MB / 367 MB, free: 5.309 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.04359, allocations: 0 / 367 MB, free: 5.309 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.0436, allocations: 0 / 367 MB, free: 5.309 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.322e-05/0.04369, allocations: 0 / 367 MB, free: 5.309 MB / 330.7 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.005862/0.04955, allocations: 4.248 MB / 371.2 MB, free: 1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.0496, allocations: 8.031 kB / 371.2 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004141/0.05001, allocations: 451.3 kB / 371.7 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001538/0.05155, allocations: 0.6311 MB / 372.3 MB, free: 15.9 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002827/0.05438, allocations: 2.213 MB / 374.5 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.0545, allocations: 234.7 kB / 374.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002928/0.05479, allocations: 316.3 kB / 375.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004314/0.0591, allocations: 4.122 MB / 379.2 MB, free: 8.902 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.556e-05/0.05916, allocations: 19.88 kB / 379.2 MB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001949/0.05935, allocations: 124 kB / 379.3 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.906e-05/0.05945, allocations: 146.2 kB / 379.5 MB, free: 8.617 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003914/0.06336, allocations: 3.382 MB / 382.8 MB, free: 5.227 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01182/0.07518, allocations: 11.79 MB / 394.6 MB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002333/0.07751, allocations: 1.764 MB / 396.4 MB, free: 7.301 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009997/0.07851, allocations: 0.9298 MB / 397.3 MB, free: 6.375 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002653/0.08117, allocations: 2.174 MB / 399.5 MB, free: 4.176 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.08119, allocations: 51.5 kB / 399.6 MB, free: 4.117 MB / 362.7 MB Notification: Performance of pre-optimization done (n=108): time 2.826e-06/0.0812, allocations: 0 / 399.6 MB, free: 4.117 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.007999/0.0892, allocations: 5.807 MB / 405.4 MB, free: 14.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.08925, allocations: 68.72 kB / 405.4 MB, free: 14.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002291/0.09154, allocations: 1.94 MB / 407.4 MB, free: 12.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.253e-05/0.09162, allocations: 53.7 kB / 407.4 MB, free: 12.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007848/0.09241, allocations: 1.552 MB / 409 MB, free: 10.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002859/0.09269, allocations: 0.4919 MB / 409.5 MB, free: 10.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003413/0.09303, allocations: 335.4 kB / 409.8 MB, free: 9.758 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003303/0.09336, allocations: 301.1 kB / 410.1 MB, free: 9.461 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008334/0.0942, allocations: 0.7769 MB / 410.9 MB, free: 8.684 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.0953, allocations: 1.404 MB / 412.3 MB, free: 7.004 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002032/0.09733, allocations: 2.316 MB / 414.6 MB, free: 4.422 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.355e-06/0.09734, allocations: 4 kB / 414.6 MB, free: 4.418 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002967/0.1003, allocations: 2.494 MB / 417.1 MB, free: 1.906 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.1003, allocations: 12 kB / 417.1 MB, free: 1.895 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/0.1004, allocations: 20 kB / 417.1 MB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002449/0.1006, allocations: 118.6 kB / 417.2 MB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009729/0.1016, allocations: 487.2 kB / 417.7 MB, free: 1.273 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007856/0.1024, allocations: 1.302 MB / 419 MB, free: 15.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008313/0.1032, allocations: 123.7 kB / 419.1 MB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.568e-05/0.1033, allocations: 83.98 kB / 419.2 MB, free: 15.65 MB / 394.7 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.001235/0.1045, allocations: 0.9813 MB / 420.2 MB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000197/0.1047, allocations: 214.6 kB / 420.4 MB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002093/0.1068, allocations: 1.969 MB / 422.4 MB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.1068, allocations: 12 kB / 422.4 MB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1068, allocations: 7.938 kB / 422.4 MB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.1068, allocations: 7.969 kB / 422.4 MB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00526/0.1121, allocations: 4.655 MB / 427.1 MB, free: 7.672 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.1121, allocations: 4 kB / 427.1 MB, free: 7.668 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006942/0.1128, allocations: 307.5 kB / 427.4 MB, free: 7.367 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001741/0.113, allocations: 98.77 kB / 427.5 MB, free: 7.262 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.406e-05/0.113, allocations: 31.98 kB / 427.5 MB, free: 7.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006185/0.1136, allocations: 1.275 MB / 428.8 MB, free: 5.84 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1136, allocations: 7.938 kB / 428.8 MB, free: 5.832 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003115/0.1167, allocations: 3.091 MB / 431.9 MB, free: 2.684 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005553/0.1173, allocations: 390.5 kB / 432.2 MB, free: 2.301 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.1174, allocations: 28 kB / 432.3 MB, free: 2.273 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005006/0.1179, allocations: 75.91 kB / 432.3 MB, free: 2.199 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.1181, allocations: 101.1 kB / 432.4 MB, free: 2.102 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.012e-05/0.1181, allocations: 36 kB / 432.5 MB, free: 2.066 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001239/0.1194, allocations: 1.301 MB / 433.8 MB, free: 0.7422 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1194, allocations: 0 / 433.8 MB, free: 0.7422 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001097/0.1204, allocations: 0.539 MB / 434.3 MB, free: 208 kB / 394.7 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.003283/0.1237, allocations: 3.706 MB / 438 MB, free: 12.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002461/0.1262, allocations: 1.988 MB / 440 MB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1262, allocations: 0 / 440 MB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009389/0.1271, allocations: 0.9487 MB / 441 MB, free: 9.465 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.1285, allocations: 0.5301 MB / 441.5 MB, free: 8.941 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1712/0.2997, allocations: 20.12 MB / 461.6 MB, free: 109.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001132/0.3008, allocations: 1.719 MB / 463.3 MB, free: 108.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009765/0.3018, allocations: 0.5138 MB / 463.8 MB, free: 108.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008951/0.3027, allocations: 1.188 MB / 465 MB, free: 107.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.864e-06/0.3027, allocations: 0 / 465 MB, free: 107.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0562/0.3589, allocations: 53.09 MB / 0.506 GB, free: 54.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.344/8.703, allocations: 14.52 kB / 0.506 GB, free: 54.85 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/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/jenkins/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: 12.751872472465038]