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.001348/0.001348, allocations: 113.2 kB / 20.43 MB, free: 1.449 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: 214.6 kB / 23.74 MB, free: 4.656 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.523/1.523, allocations: 230.6 MB / 257.5 MB, free: 8.031 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.002623/0.002623, allocations: 47.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2714, allocations: 53.37 MB / 431.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02001/0.2915, allocations: 15.93 MB / 447.1 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01243/0.3039, allocations: 5.374 MB / 452.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003461/0.3073, allocations: 127.2 kB / 452.6 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004238/0.3116, allocations: 1.141 MB / 453.7 MB, free: 180 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005378/0.317, allocations: 1.305 MB / 455 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003254/0.3202, allocations: 0.935 MB / 456 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006671/0.3269, allocations: 3.654 MB / 459.6 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004951/0.3318, allocations: 1.917 MB / 461.5 MB, free: 8.273 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00411/0.3359, allocations: 1.787 MB / 463.3 MB, free: 6.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004623/0.3406, allocations: 2.152 MB / 465.5 MB, free: 4.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001669/0.3422, allocations: 484 kB / 466 MB, free: 3.848 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00255/0.3448, allocations: 0.7067 MB / 466.7 MB, free: 3.141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0019/0.3467, allocations: 1.161 MB / 467.8 MB, free: 1.977 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003343/0.35, allocations: 2.05 MB / 469.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009089/0.3591, allocations: 6.314 MB / 476.2 MB, free: 9.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.013e-05/0.3591, allocations: 4 kB / 476.2 MB, free: 9.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3591, allocations: 4 kB / 476.2 MB, free: 9.574 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001763/0.3593, allocations: 0 / 476.2 MB, free: 9.574 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.01184/0.3711, allocations: 4.287 MB / 480.5 MB, free: 5.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.3712, allocations: 8.031 kB / 480.5 MB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001052/0.3722, allocations: 459.2 kB / 480.9 MB, free: 4.758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003267/0.3755, allocations: 0.631 MB / 481.6 MB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00565/0.3812, allocations: 2.23 MB / 483.8 MB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002862/0.3815, allocations: 242.6 kB / 484 MB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008109/0.3823, allocations: 307.9 kB / 484.3 MB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009144/0.3914, allocations: 4.054 MB / 488.4 MB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-05/0.3915, allocations: 7.953 kB / 488.4 MB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004156/0.3919, allocations: 132 kB / 488.5 MB, free: 13.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001717/0.3921, allocations: 142.2 kB / 488.7 MB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007319/0.3994, allocations: 3.397 MB / 492.1 MB, free: 9.512 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02508/0.4245, allocations: 12.86 MB / 0.4931 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003623/0.4281, allocations: 1.76 MB / 0.4948 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001742/0.4299, allocations: 0.9337 MB / 0.4957 GB, free: 9.582 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005338/0.4352, allocations: 2.458 MB / 0.4981 GB, free: 7.098 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.166e-05/0.4352, allocations: 55.5 kB / 0.4982 GB, free: 7.035 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.434e-06/0.4352, allocations: 0 / 0.4982 GB, free: 7.035 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01262/0.4479, allocations: 5.814 MB / 0.5039 GB, free: 1.188 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.4479, allocations: 68.7 kB / 0.5039 GB, free: 1.109 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00329/0.4512, allocations: 1.913 MB / 0.5058 GB, free: 15.15 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001825/0.4514, allocations: 49.7 kB / 0.5058 GB, free: 15.09 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001372/0.4528, allocations: 1.552 MB / 0.5074 GB, free: 13.53 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000504/0.4533, allocations: 0.5074 MB / 0.5079 GB, free: 13.02 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005321/0.4538, allocations: 339.4 kB / 0.5082 GB, free: 12.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.4539, allocations: 301.1 kB / 0.5085 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.4552, allocations: 0.773 MB / 0.5092 GB, free: 11.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00181/0.457, allocations: 1.379 MB / 0.5106 GB, free: 9.957 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00331/0.4603, allocations: 2.316 MB / 0.5128 GB, free: 7.375 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/0.4603, allocations: 4 kB / 0.5128 GB, free: 7.371 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004489/0.4648, allocations: 2.49 MB / 0.5153 GB, free: 4.863 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.4649, allocations: 16 kB / 0.5153 GB, free: 4.848 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.112e-05/0.4649, allocations: 20.62 kB / 0.5153 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003962/0.4653, allocations: 118.5 kB / 0.5154 GB, free: 4.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001889/0.4672, allocations: 487.2 kB / 0.5159 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001263/0.4684, allocations: 1.299 MB / 0.5171 GB, free: 2.816 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/0.47, allocations: 120 kB / 0.5173 GB, free: 2.699 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/0.4702, allocations: 83.98 kB / 0.5173 GB, free: 2.617 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.002005/0.4722, allocations: 0.9928 MB / 0.5183 GB, free: 1.613 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005072/0.4727, allocations: 210.6 kB / 0.5185 GB, free: 1.406 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003663/0.4764, allocations: 1.969 MB / 0.5204 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.847e-05/0.4764, allocations: 20 kB / 0.5204 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4764, allocations: 0 / 0.5204 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.972e-05/0.4764, allocations: 7.969 kB / 0.5205 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009342/0.4858, allocations: 4.971 MB / 0.5253 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/0.4858, allocations: 4 kB / 0.5253 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.4872, allocations: 303.8 kB / 0.5256 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003115/0.4875, allocations: 98.45 kB / 0.5257 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.565e-05/0.4876, allocations: 31.98 kB / 0.5257 GB, free: 9.879 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/0.4886, allocations: 1.275 MB / 0.527 GB, free: 8.484 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.4886, allocations: 8.062 kB / 0.527 GB, free: 8.477 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005042/0.4937, allocations: 3.091 MB / 0.53 GB, free: 5.328 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001234/0.4949, allocations: 394.4 kB / 0.5304 GB, free: 4.941 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003384/0.4953, allocations: 28 kB / 0.5304 GB, free: 4.914 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.4963, allocations: 83.95 kB / 0.5305 GB, free: 4.832 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/0.4965, allocations: 97.02 kB / 0.5306 GB, free: 4.738 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.953e-05/0.4966, allocations: 39.98 kB / 0.5306 GB, free: 4.699 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00221/0.4988, allocations: 1.297 MB / 0.5319 GB, free: 3.379 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4988, allocations: 0 / 0.5319 GB, free: 3.379 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001923/0.5007, allocations: 0.5273 MB / 0.5324 GB, free: 2.852 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.2339/0.7346, allocations: 3.721 MB / 0.536 GB, free: 99.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003943/0.7385, allocations: 1.972 MB / 0.538 GB, free: 99.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/0.7385, allocations: 0 / 0.538 GB, free: 99.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/0.7402, allocations: 0.956 MB / 0.5389 GB, free: 98.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00303/0.7432, allocations: 0.5165 MB / 0.5394 GB, free: 98.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03426/0.7775, allocations: 20.12 MB / 0.559 GB, free: 86.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001877/0.7793, allocations: 2.268 MB / 0.5613 GB, free: 84.05 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00178/0.7811, allocations: 0.5172 MB / 0.5618 GB, free: 83.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001528/0.7826, allocations: 1.183 MB / 0.5629 GB, free: 82.36 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.7826, allocations: 0 / 0.5629 GB, free: 82.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1045/0.8871, allocations: 51.77 MB / 0.6135 GB, free: 31.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.82/17.71, allocations: 3.984 kB / 0.6135 GB, free: 31.01 MB / 446.1 MB " [Timeout remaining time 642] (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: 23.96811389992945]