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.00147/0.00147, allocations: 125 kB / 17.79 MB, free: 5.121 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.001529/0.001529, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.434/1.434, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.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="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 0.00148/0.00148, allocations: 51.92 kB / 365.7 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09531/0.09679, allocations: 52.14 MB / 417.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01831/0.1151, allocations: 15.24 MB / 433 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.1259, allocations: 5.123 MB / 438.2 MB, free: 8.129 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002963/0.1289, allocations: 99.62 kB / 438.3 MB, free: 8.031 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002978/0.1318, allocations: 1.122 MB / 439.4 MB, free: 6.902 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004114/0.136, allocations: 1.316 MB / 440.7 MB, free: 5.578 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002251/0.1382, allocations: 0.8841 MB / 441.6 MB, free: 4.695 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004668/0.1429, allocations: 3.628 MB / 445.2 MB, free: 1.051 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2292/0.3721, allocations: 2.354 MB / 447.6 MB, free: 8.684 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002805/0.3749, allocations: 1.732 MB / 449.3 MB, free: 8.582 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002773/0.3777, allocations: 2.085 MB / 451.4 MB, free: 8.219 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000847/0.3785, allocations: 479.4 kB / 451.9 MB, free: 8.219 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001741/0.3803, allocations: 0.6877 MB / 452.5 MB, free: 8.219 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001076/0.3814, allocations: 1.154 MB / 453.7 MB, free: 8.082 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002549/0.3839, allocations: 2.042 MB / 455.7 MB, free: 7.555 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008854/0.3928, allocations: 6.288 MB / 462 MB, free: 6.824 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3928, allocations: 0 / 462 MB, free: 6.824 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3928, allocations: 0 / 462 MB, free: 6.824 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002298/0.393, allocations: 0 / 462 MB, free: 6.824 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.01355/0.4065, allocations: 4.343 MB / 466.4 MB, free: 5.004 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.4066, allocations: 12.11 kB / 466.4 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008271/0.4074, allocations: 452.2 kB / 466.8 MB, free: 4.742 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002983/0.4104, allocations: 0.6352 MB / 467.5 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004669/0.4151, allocations: 2.293 MB / 469.8 MB, free: 3.285 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/0.4153, allocations: 235 kB / 470 MB, free: 3.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000531/0.4158, allocations: 309.5 kB / 470.3 MB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007194/0.423, allocations: 4.056 MB / 474.3 MB, free: 1.055 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.679e-05/0.4231, allocations: 5.547 kB / 474.3 MB, free: 1.051 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002947/0.4233, allocations: 126.3 kB / 474.5 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001646/0.4235, allocations: 143.6 kB / 474.6 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006369/0.4299, allocations: 3.388 MB / 478 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02136/0.4512, allocations: 13.18 MB / 491.2 MB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00426/0.4555, allocations: 3.859 MB / 495 MB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001467/0.457, allocations: 0.9039 MB / 495.9 MB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005571/0.4625, allocations: 2.657 MB / 498.6 MB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.8e-05/0.4626, allocations: 47.5 kB / 498.6 MB, free: 14.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.655e-06/0.4626, allocations: 0 / 498.6 MB, free: 14.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01231/0.4749, allocations: 6.033 MB / 0.4928 GB, free: 8.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.4749, allocations: 68.72 kB / 0.4929 GB, free: 8.512 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003009/0.478, allocations: 1.893 MB / 0.4948 GB, free: 6.574 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.4781, allocations: 49.64 kB / 0.4948 GB, free: 6.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.4793, allocations: 1.541 MB / 0.4963 GB, free: 4.969 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004769/0.4798, allocations: 0.5118 MB / 0.4968 GB, free: 4.473 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005571/0.4803, allocations: 335.4 kB / 0.4971 GB, free: 4.137 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.4805, allocations: 301.1 kB / 0.4974 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.4817, allocations: 0.7691 MB / 0.4982 GB, free: 3.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001767/0.4835, allocations: 1.377 MB / 0.4995 GB, free: 1.438 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003163/0.4867, allocations: 2.311 MB / 0.5018 GB, free: 14.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.296e-05/0.4867, allocations: 7.938 kB / 0.5018 GB, free: 14.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004349/0.491, allocations: 2.481 MB / 0.5042 GB, free: 12.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.606e-05/0.4911, allocations: 12 kB / 0.5042 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.123e-05/0.4911, allocations: 20 kB / 0.5042 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003791/0.4915, allocations: 126.3 kB / 0.5044 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.4932, allocations: 484.8 kB / 0.5048 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.4945, allocations: 1.411 MB / 0.5062 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/0.4962, allocations: 111.8 kB / 0.5063 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001404/0.4963, allocations: 88.08 kB / 0.5064 GB, free: 10.21 MB / 414.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.002065/0.4984, allocations: 0.9788 MB / 0.5073 GB, free: 9.246 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004303/0.4988, allocations: 211.8 kB / 0.5075 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003556/0.5023, allocations: 1.972 MB / 0.5095 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/0.5024, allocations: 12 kB / 0.5095 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.5024, allocations: 1.125 kB / 0.5095 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.5024, allocations: 11.97 kB / 0.5095 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00908/0.5115, allocations: 4.978 MB / 0.5144 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.5115, allocations: 7.938 kB / 0.5144 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.5128, allocations: 308.3 kB / 0.5147 GB, free: 1.711 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000302/0.5131, allocations: 98.77 kB / 0.5148 GB, free: 1.605 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.407e-05/0.5132, allocations: 24.69 kB / 0.5148 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/0.5143, allocations: 1.382 MB / 0.5161 GB, free: 72 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.77e-06/0.5143, allocations: 7.188 kB / 0.5161 GB, free: 68 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004886/0.5192, allocations: 3.091 MB / 0.5191 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001324/0.5205, allocations: 467.5 kB / 0.5196 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003106/0.5208, allocations: 28 kB / 0.5196 GB, free: 12.42 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009906/0.5218, allocations: 79.19 kB / 0.5197 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/0.522, allocations: 93.12 kB / 0.5198 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.694e-05/0.5221, allocations: 38.81 kB / 0.5198 GB, free: 12.21 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002199/0.5243, allocations: 1.293 MB / 0.5211 GB, free: 10.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5243, allocations: 1.031 kB / 0.5211 GB, free: 10.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001966/0.5262, allocations: 0.5273 MB / 0.5216 GB, free: 10.37 MB / 430.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.005313/0.5316, allocations: 3.708 MB / 0.5252 GB, free: 6.621 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003694/0.5353, allocations: 2.126 MB / 0.5273 GB, free: 4.512 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.5353, allocations: 0 / 0.5273 GB, free: 4.512 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001639/0.5369, allocations: 1.107 MB / 0.5284 GB, free: 3.383 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002837/0.5397, allocations: 0.5114 MB / 0.5289 GB, free: 2.887 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03441/0.5741, allocations: 20.07 MB / 0.5485 GB, free: 14.15 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002359/0.5765, allocations: 2.263 MB / 0.5507 GB, free: 11.86 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001689/0.5782, allocations: 0.5092 MB / 0.5512 GB, free: 11.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001588/0.5798, allocations: 1.179 MB / 0.5523 GB, free: 10.16 MB / 462.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5798, allocations: 0 / 0.5523 GB, free: 10.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1414/0.7212, allocations: 50.13 MB / 0.6013 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.6/16.32, allocations: 12.03 kB / 0.6013 GB, free: 8.527 MB / 0.4981 GB " [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_2/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_2/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: 23.938602119218558]