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.001481/0.001481, allocations: 108.6 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.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.001727/0.001727, allocations: 196.8 kB / 24.5 MB, free: 4.008 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.349/1.349, allocations: 225.6 MB / 253.3 MB, free: 13.04 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_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_0_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.001453/0.001453, allocations: 51.92 kB / 371.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2265, allocations: 52.17 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01747/0.2439, allocations: 15.32 MB / 438.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009505/0.2534, allocations: 5.104 MB / 443.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002477/0.2559, allocations: 123.2 kB / 444 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003031/0.2589, allocations: 1.13 MB / 445.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004114/0.2631, allocations: 1.328 MB / 446.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002209/0.2653, allocations: 0.9075 MB / 447.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004638/0.2699, allocations: 3.622 MB / 451 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002731/0.2726, allocations: 1.913 MB / 452.9 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002507/0.2751, allocations: 1.776 MB / 454.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002906/0.2781, allocations: 2.086 MB / 456.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007441/0.2788, allocations: 480 kB / 457.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001422/0.2802, allocations: 0.6911 MB / 457.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00104/0.2813, allocations: 1.149 MB / 459.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002194/0.2835, allocations: 2.05 MB / 461.1 MB, free: 8.742 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007146/0.2906, allocations: 6.287 MB / 467.4 MB, free: 2.434 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2906, allocations: 0 / 467.4 MB, free: 2.434 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2906, allocations: 0 / 467.4 MB, free: 2.434 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001537/0.2908, allocations: 0 / 467.4 MB, free: 2.434 MB / 366.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.01024/0.301, allocations: 4.264 MB / 471.7 MB, free: 14.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.301, allocations: 8.031 kB / 471.7 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.408e-05/0.3011, allocations: 90.48 kB / 471.8 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000586/0.3017, allocations: 451.3 kB / 472.2 MB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002656/0.3044, allocations: 0.631 MB / 472.8 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004595/0.309, allocations: 2.218 MB / 475 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002107/0.3092, allocations: 242.4 kB / 475.3 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005304/0.3097, allocations: 312 kB / 475.6 MB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007421/0.3171, allocations: 4.043 MB / 479.6 MB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.808e-05/0.3172, allocations: 3.984 kB / 479.6 MB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003012/0.3175, allocations: 132 kB / 479.8 MB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001437/0.3176, allocations: 146.2 kB / 479.9 MB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006167/0.3238, allocations: 3.39 MB / 483.3 MB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0197/0.3435, allocations: 12.82 MB / 496.1 MB, free: 5.102 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003261/0.3468, allocations: 1.688 MB / 497.8 MB, free: 3.449 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/0.3482, allocations: 0.8909 MB / 498.7 MB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004324/0.3526, allocations: 2.411 MB / 0.4894 GB, free: 124 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.3526, allocations: 43.56 kB / 0.4894 GB, free: 72 kB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.965e-06/0.3526, allocations: 0 / 0.4894 GB, free: 72 kB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01131/0.3639, allocations: 5.811 MB / 0.4951 GB, free: 10.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.364, allocations: 68.72 kB / 0.4951 GB, free: 10.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002724/0.3667, allocations: 1.897 MB / 0.497 GB, free: 8.207 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.3668, allocations: 45.7 kB / 0.497 GB, free: 8.156 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001202/0.368, allocations: 1.544 MB / 0.4985 GB, free: 6.598 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004456/0.3684, allocations: 0.5074 MB / 0.499 GB, free: 6.086 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005156/0.3689, allocations: 331.4 kB / 0.4994 GB, free: 5.754 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.3691, allocations: 305.1 kB / 0.4996 GB, free: 5.453 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.3703, allocations: 0.773 MB / 0.5004 GB, free: 4.68 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00167/0.372, allocations: 1.375 MB / 0.5017 GB, free: 3.031 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003069/0.375, allocations: 2.32 MB / 0.504 GB, free: 456 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/0.375, allocations: 4 kB / 0.504 GB, free: 452 kB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004145/0.3792, allocations: 2.479 MB / 0.5064 GB, free: 13.94 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.3792, allocations: 19.94 kB / 0.5064 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.332e-05/0.3792, allocations: 16 kB / 0.5065 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003484/0.3796, allocations: 122.5 kB / 0.5066 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001707/0.3813, allocations: 483.4 kB / 0.507 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.3824, allocations: 1.31 MB / 0.5083 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.3838, allocations: 111.8 kB / 0.5084 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.384, allocations: 84 kB / 0.5085 GB, free: 11.69 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.001635/0.3856, allocations: 0.9851 MB / 0.5095 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003567/0.386, allocations: 210.6 kB / 0.5097 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003382/0.3893, allocations: 1.965 MB / 0.5116 GB, free: 8.508 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.3893, allocations: 16 kB / 0.5116 GB, free: 8.492 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3894, allocations: 0 / 0.5116 GB, free: 8.492 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-05/0.3894, allocations: 11.95 kB / 0.5116 GB, free: 8.48 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007913/0.3973, allocations: 4.967 MB / 0.5165 GB, free: 3.414 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.3973, allocations: 0 / 0.5165 GB, free: 3.414 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/0.3986, allocations: 303.6 kB / 0.5168 GB, free: 3.117 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003167/0.399, allocations: 102.5 kB / 0.5169 GB, free: 3.008 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.662e-05/0.3991, allocations: 32 kB / 0.5169 GB, free: 2.977 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.4001, allocations: 1.275 MB / 0.5181 GB, free: 1.586 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.4001, allocations: 0 / 0.5181 GB, free: 1.586 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004827/0.405, allocations: 3.099 MB / 0.5212 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001051/0.406, allocations: 386.5 kB / 0.5215 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002448/0.4062, allocations: 24 kB / 0.5215 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009455/0.4072, allocations: 95.89 kB / 0.5216 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/0.4074, allocations: 89.08 kB / 0.5217 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.29e-05/0.4074, allocations: 35.98 kB / 0.5218 GB, free: 13.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001983/0.4094, allocations: 1.285 MB / 0.523 GB, free: 12.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4094, allocations: 0 / 0.523 GB, free: 12.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001622/0.4111, allocations: 0.5312 MB / 0.5235 GB, free: 11.97 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.0049/0.416, allocations: 3.704 MB / 0.5272 GB, free: 8.203 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003372/0.4193, allocations: 1.982 MB / 0.5291 GB, free: 6.203 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.4193, allocations: 0 / 0.5291 GB, free: 6.203 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.4208, allocations: 0.9504 MB / 0.53 GB, free: 5.238 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002269/0.4231, allocations: 0.5149 MB / 0.5305 GB, free: 4.727 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1983/0.6214, allocations: 20.1 MB / 0.5501 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001416/0.6228, allocations: 2.258 MB / 0.5523 GB, free: 100.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001378/0.6242, allocations: 0.5119 MB / 0.5528 GB, free: 99.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/0.6253, allocations: 1.179 MB / 0.554 GB, free: 98.7 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6253, allocations: 4 kB / 0.554 GB, free: 98.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07728/0.7026, allocations: 51.5 MB / 0.6043 GB, free: 47.69 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.27/15.97, allocations: 18.17 kB / 0.6043 GB, free: 47.68 MB / 446.1 MB " [Timeout remaining time 644] (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/jenkins1/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/jenkins1/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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 25.686472486006096]