Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.0009187/0.0009187, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008201/0.0008201, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8804/0.8804, allocations: 173.3 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_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_0_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.543e-06/1.543e-06, allocations: 0 / 318.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.833e-05/1.988e-05, allocations: 6.281 kB / 318.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01361/0.01363, allocations: 13.25 MB / 331.7 MB, free: 9.023 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007265/0.02089, allocations: 4.842 MB / 336.6 MB, free: 4.164 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001459/0.02235, allocations: 119.3 kB / 336.7 MB, free: 4.047 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001965/0.02431, allocations: 1.075 MB / 337.7 MB, free: 2.965 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002105/0.02642, allocations: 1.335 MB / 339.1 MB, free: 1.621 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.02752, allocations: 0.8834 MB / 340 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002697/0.03022, allocations: 3.766 MB / 343.7 MB, free: 12.95 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001818/0.03204, allocations: 1.831 MB / 345.6 MB, free: 11.05 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002379/0.03442, allocations: 2.608 MB / 348.2 MB, free: 8.438 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001533/0.03595, allocations: 1.726 MB / 349.9 MB, free: 6.707 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004452/0.03639, allocations: 484 kB / 350.4 MB, free: 6.234 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007702/0.03716, allocations: 0.6637 MB / 351 MB, free: 5.57 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006289/0.03779, allocations: 1.18 MB / 352.2 MB, free: 4.387 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.03886, allocations: 1.372 MB / 353.6 MB, free: 3.012 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003964/0.04283, allocations: 6.326 MB / 359.9 MB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.04283, allocations: 4 kB / 359.9 MB, free: 12.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.04283, allocations: 0 / 359.9 MB, free: 12.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.91e-05/0.0429, allocations: 0 / 359.9 MB, free: 12.66 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.005333/0.04823, allocations: 4.217 MB / 364.1 MB, free: 8.387 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.04827, allocations: 8.031 kB / 364.1 MB, free: 8.379 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000385/0.04866, allocations: 447.3 kB / 364.6 MB, free: 7.93 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001422/0.05008, allocations: 0.6388 MB / 365.2 MB, free: 7.289 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002399/0.05248, allocations: 2.194 MB / 367.4 MB, free: 5.047 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.05259, allocations: 234.7 kB / 367.6 MB, free: 4.816 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002858/0.05288, allocations: 312.3 kB / 367.9 MB, free: 4.512 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004037/0.05692, allocations: 4.126 MB / 372.1 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.373e-05/0.05697, allocations: 4 kB / 372.1 MB, free: 308 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001948/0.05717, allocations: 124 kB / 372.2 MB, free: 184 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.123e-05/0.05726, allocations: 158.2 kB / 372.3 MB, free: 24 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003534/0.06079, allocations: 3.374 MB / 375.7 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0118/0.07259, allocations: 11.74 MB / 387.5 MB, free: 500 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002078/0.07467, allocations: 1.666 MB / 389.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009448/0.07561, allocations: 0.9063 MB / 390 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002533/0.07814, allocations: 2.115 MB / 392.1 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.07818, allocations: 51.55 kB / 392.2 MB, free: 11.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=108): time 2.074e-06/0.07818, allocations: 0 / 392.2 MB, free: 11.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.007275/0.08545, allocations: 5.81 MB / 398 MB, free: 5.906 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.08549, allocations: 64.72 kB / 398.1 MB, free: 5.832 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/0.08731, allocations: 1.928 MB / 400 MB, free: 3.859 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.457e-05/0.08737, allocations: 53.7 kB / 400.1 MB, free: 3.801 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007155/0.08809, allocations: 1.54 MB / 401.6 MB, free: 2.246 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005103/0.0886, allocations: 0.4996 MB / 402.1 MB, free: 1.742 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003276/0.08893, allocations: 335.4 kB / 402.4 MB, free: 1.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.812e-05/0.089, allocations: 305.1 kB / 402.7 MB, free: 1.109 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007826/0.08978, allocations: 0.7652 MB / 403.5 MB, free: 352 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.09084, allocations: 1.396 MB / 404.9 MB, free: 14.67 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001993/0.09283, allocations: 2.316 MB / 407.2 MB, free: 12.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.09284, allocations: 4 kB / 407.2 MB, free: 12.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002733/0.09557, allocations: 2.487 MB / 409.7 MB, free: 9.578 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.0956, allocations: 16 kB / 409.7 MB, free: 9.562 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.09562, allocations: 16 kB / 409.7 MB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002151/0.09583, allocations: 118.5 kB / 409.8 MB, free: 9.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009051/0.09674, allocations: 475.3 kB / 410.3 MB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006722/0.09741, allocations: 1.318 MB / 411.6 MB, free: 7.523 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006549/0.09806, allocations: 115.8 kB / 411.7 MB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.609e-05/0.09815, allocations: 79.94 kB / 411.8 MB, free: 7.332 MB / 378.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.001015/0.09916, allocations: 0.993 MB / 412.8 MB, free: 6.328 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001946/0.09936, allocations: 210.6 kB / 413 MB, free: 6.121 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001982/0.1013, allocations: 1.958 MB / 415 MB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.1013, allocations: 19.94 kB / 415 MB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1014, allocations: 0 / 415 MB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.1014, allocations: 7.969 kB / 415 MB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004866/0.1062, allocations: 4.635 MB / 419.6 MB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.1062, allocations: 7.938 kB / 419.6 MB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000673/0.1069, allocations: 311.5 kB / 419.9 MB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001569/0.1071, allocations: 94.78 kB / 420 MB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-05/0.1071, allocations: 31.98 kB / 420.1 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000547/0.1077, allocations: 1.271 MB / 421.3 MB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1077, allocations: 0 / 421.3 MB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002992/0.1107, allocations: 3.095 MB / 424.4 MB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004747/0.1111, allocations: 390.5 kB / 424.8 MB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.1113, allocations: 27.98 kB / 424.8 MB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004733/0.1117, allocations: 83.91 kB / 424.9 MB, free: 9.898 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.1118, allocations: 85.14 kB / 425 MB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.191e-05/0.1119, allocations: 47.92 kB / 425 MB, free: 9.77 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001136/0.113, allocations: 1.281 MB / 426.3 MB, free: 8.465 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.113, allocations: 0 / 426.3 MB, free: 8.465 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009434/0.114, allocations: 0.5391 MB / 426.9 MB, free: 7.926 MB / 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.003317/0.1173, allocations: 3.707 MB / 430.6 MB, free: 4.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.1193, allocations: 1.972 MB / 432.5 MB, free: 2.172 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1193, allocations: 0 / 432.5 MB, free: 2.172 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000876/0.1201, allocations: 0.9525 MB / 433.5 MB, free: 1.203 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/0.1214, allocations: 0.5067 MB / 434 MB, free: 0.7031 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1458/0.2672, allocations: 20.11 MB / 454.1 MB, free: 119.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/0.2683, allocations: 1.712 MB / 455.8 MB, free: 118.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009224/0.2692, allocations: 0.5094 MB / 456.3 MB, free: 118.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008055/0.27, allocations: 1.183 MB / 457.5 MB, free: 117.9 MB / 410.7 MB Notification: Performance of SimCode: time 1.493e-06/0.27, allocations: 0 / 457.5 MB, free: 117.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04743/0.3175, allocations: 52.74 MB / 0.4983 GB, free: 68.29 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.255/8.572, allocations: 23.08 kB / 0.4983 GB, free: 68.27 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_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_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.830568511970341]