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.00154/0.00154, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001585/0.001585, allocations: 201.2 kB / 24.52 MB, free: 4.156 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.34/1.34, allocations: 230.6 MB / 258.3 MB, free: 8.004 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 43.92 kB / 378.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.2185, allocations: 53.36 MB / 432 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01763/0.2361, allocations: 15.94 MB / 447.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009662/0.2458, allocations: 5.372 MB / 453.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002051/0.2478, allocations: 127.2 kB / 453.4 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002583/0.2504, allocations: 1.138 MB / 454.5 MB, free: 176 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00316/0.2536, allocations: 1.305 MB / 455.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001885/0.2554, allocations: 0.9389 MB / 456.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003954/0.2594, allocations: 3.66 MB / 460.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002432/0.2618, allocations: 1.917 MB / 462.3 MB, free: 8.262 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002145/0.264, allocations: 1.784 MB / 464.1 MB, free: 6.473 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002946/0.2669, allocations: 2.152 MB / 466.3 MB, free: 4.312 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006919/0.2676, allocations: 480 kB / 466.7 MB, free: 3.844 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001275/0.2689, allocations: 0.7067 MB / 467.5 MB, free: 3.137 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001019/0.2699, allocations: 1.169 MB / 468.6 MB, free: 1.965 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002019/0.2719, allocations: 2.042 MB / 470.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00646/0.2784, allocations: 6.319 MB / 477 MB, free: 9.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2784, allocations: 0 / 477 MB, free: 9.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2784, allocations: 0 / 477 MB, free: 9.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001248/0.2785, allocations: 0 / 477 MB, free: 9.57 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.01043/0.2889, allocations: 4.295 MB / 481.3 MB, free: 5.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.289, allocations: 8.031 kB / 481.3 MB, free: 5.207 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.672e-05/0.2891, allocations: 86.48 kB / 481.4 MB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005916/0.2897, allocations: 455.3 kB / 481.8 MB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002731/0.2924, allocations: 0.6271 MB / 482.4 MB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00429/0.2967, allocations: 2.226 MB / 484.7 MB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002004/0.2969, allocations: 242.4 kB / 484.9 MB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005192/0.2974, allocations: 312 kB / 485.2 MB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006715/0.3041, allocations: 4.047 MB / 489.3 MB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.698e-05/0.3042, allocations: 11.89 kB / 489.3 MB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002789/0.3045, allocations: 128 kB / 489.4 MB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001468/0.3046, allocations: 154.2 kB / 489.5 MB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005706/0.3103, allocations: 3.393 MB / 492.9 MB, free: 9.422 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01926/0.3296, allocations: 12.87 MB / 0.4939 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003414/0.333, allocations: 1.767 MB / 0.4957 GB, free: 10.42 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001562/0.3346, allocations: 0.9298 MB / 0.4966 GB, free: 9.492 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004363/0.3389, allocations: 2.454 MB / 0.499 GB, free: 7.012 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.339, allocations: 43.56 kB / 0.499 GB, free: 6.961 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.988e-06/0.339, allocations: 7.922 kB / 0.499 GB, free: 6.953 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.0117/0.3507, allocations: 5.826 MB / 0.5047 GB, free: 1.094 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.3507, allocations: 64.72 kB / 0.5048 GB, free: 1.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002745/0.3535, allocations: 1.906 MB / 0.5066 GB, free: 15.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.3536, allocations: 49.7 kB / 0.5067 GB, free: 15.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001149/0.3547, allocations: 1.552 MB / 0.5082 GB, free: 13.45 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004424/0.3552, allocations: 0.5035 MB / 0.5087 GB, free: 12.94 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005159/0.3557, allocations: 339.4 kB / 0.509 GB, free: 12.6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.3558, allocations: 309.1 kB / 0.5093 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.357, allocations: 0.7691 MB / 0.5101 GB, free: 11.53 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.3587, allocations: 1.387 MB / 0.5114 GB, free: 9.867 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00312/0.3619, allocations: 2.308 MB / 0.5137 GB, free: 7.293 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.3619, allocations: 8 kB / 0.5137 GB, free: 7.285 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004088/0.366, allocations: 2.49 MB / 0.5161 GB, free: 4.777 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/0.366, allocations: 16 kB / 0.5161 GB, free: 4.762 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.89e-05/0.366, allocations: 19.94 kB / 0.5161 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003588/0.3664, allocations: 118.5 kB / 0.5163 GB, free: 4.617 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/0.3681, allocations: 487.5 kB / 0.5167 GB, free: 4.141 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/0.3693, allocations: 1.302 MB / 0.518 GB, free: 2.727 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001445/0.3707, allocations: 115.8 kB / 0.5181 GB, free: 2.613 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001738/0.3709, allocations: 84 kB / 0.5182 GB, free: 2.531 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.001853/0.3727, allocations: 0.9929 MB / 0.5192 GB, free: 1.527 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004967/0.3732, allocations: 210.6 kB / 0.5194 GB, free: 1.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003585/0.3768, allocations: 1.969 MB / 0.5213 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.3768, allocations: 16 kB / 0.5213 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.3769, allocations: 3.984 kB / 0.5213 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.3769, allocations: 3.984 kB / 0.5213 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008755/0.3856, allocations: 4.971 MB / 0.5262 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.3856, allocations: 4 kB / 0.5262 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/0.3869, allocations: 311.5 kB / 0.5265 GB, free: 9.926 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000283/0.3872, allocations: 94.78 kB / 0.5266 GB, free: 9.824 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.6e-05/0.3873, allocations: 35.92 kB / 0.5266 GB, free: 9.789 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.3883, allocations: 1.275 MB / 0.5278 GB, free: 8.395 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.3883, allocations: 4 kB / 0.5278 GB, free: 8.391 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004556/0.3929, allocations: 3.095 MB / 0.5309 GB, free: 5.238 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000913/0.3938, allocations: 398.4 kB / 0.5312 GB, free: 4.848 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003176/0.3941, allocations: 23.98 kB / 0.5313 GB, free: 4.824 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009731/0.3951, allocations: 79.91 kB / 0.5313 GB, free: 4.746 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/0.3952, allocations: 101 kB / 0.5314 GB, free: 4.648 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.915e-05/0.3953, allocations: 39.98 kB / 0.5315 GB, free: 4.609 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001987/0.3973, allocations: 1.297 MB / 0.5327 GB, free: 3.289 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3973, allocations: 0 / 0.5327 GB, free: 3.289 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001587/0.3989, allocations: 0.5312 MB / 0.5333 GB, free: 2.758 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.1837/0.5826, allocations: 3.712 MB / 0.5369 GB, free: 100 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003067/0.5856, allocations: 1.971 MB / 0.5388 GB, free: 99.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.5856, allocations: 0 / 0.5388 GB, free: 99.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.5869, allocations: 0.9531 MB / 0.5397 GB, free: 98.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002296/0.5892, allocations: 0.5206 MB / 0.5402 GB, free: 98.76 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02233/0.6115, allocations: 20.12 MB / 0.5599 GB, free: 86.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.6128, allocations: 2.262 MB / 0.5621 GB, free: 83.99 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001268/0.614, allocations: 0.5211 MB / 0.5626 GB, free: 83.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/0.6151, allocations: 1.183 MB / 0.5638 GB, free: 82.29 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/0.6151, allocations: 0 / 0.5638 GB, free: 82.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08511/0.7002, allocations: 51.78 MB / 0.6143 GB, free: 30.94 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.77/15.47, allocations: 15.48 kB / 0.6144 GB, free: 30.93 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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 24.971813722979277]