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.001595/0.001595, allocations: 109.5 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.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.001855/0.001855, allocations: 187.1 kB / 23.72 MB, free: 4.684 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.425/1.425, allocations: 225.6 MB / 252.5 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="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.001838/0.001838, allocations: 43.92 kB / 370.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.3733, allocations: 52.19 MB / 422.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01953/0.3928, allocations: 15.31 MB / 438 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0132/0.406, allocations: 5.126 MB / 443.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004073/0.4101, allocations: 115.3 kB / 443.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003383/0.4135, allocations: 1.138 MB / 444.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004977/0.4185, allocations: 1.324 MB / 445.7 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002536/0.421, allocations: 0.8962 MB / 446.6 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005861/0.4269, allocations: 3.629 MB / 450.2 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003533/0.4304, allocations: 1.905 MB / 452.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002712/0.4331, allocations: 1.776 MB / 453.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002947/0.4361, allocations: 2.086 MB / 456 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006467/0.4367, allocations: 480 kB / 456.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001272/0.438, allocations: 0.6911 MB / 457.1 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001043/0.439, allocations: 1.157 MB / 458.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002181/0.4412, allocations: 2.038 MB / 460.3 MB, free: 8.738 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00737/0.4486, allocations: 6.288 MB / 466.6 MB, free: 2.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.009e-05/0.4486, allocations: 3.984 kB / 466.6 MB, free: 2.426 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4486, allocations: 0 / 466.6 MB, free: 2.426 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001318/0.4487, allocations: 3.938 kB / 466.6 MB, free: 2.422 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.01061/0.4593, allocations: 4.268 MB / 470.9 MB, free: 14.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.4594, allocations: 12.03 kB / 470.9 MB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005879/0.46, allocations: 439.3 kB / 471.3 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002745/0.4627, allocations: 0.6388 MB / 471.9 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004533/0.4672, allocations: 2.218 MB / 474.2 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002033/0.4674, allocations: 238.7 kB / 474.4 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004667/0.4679, allocations: 311.9 kB / 474.7 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006559/0.4745, allocations: 4.051 MB / 478.8 MB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.901e-05/0.4745, allocations: 7.922 kB / 478.8 MB, free: 6.074 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002728/0.4748, allocations: 128 kB / 478.9 MB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001442/0.475, allocations: 146.2 kB / 479 MB, free: 5.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005923/0.4809, allocations: 3.393 MB / 482.4 MB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02089/0.5018, allocations: 12.82 MB / 495.2 MB, free: 5.168 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0034/0.5052, allocations: 1.682 MB / 496.9 MB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.5067, allocations: 0.8986 MB / 497.8 MB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00453/0.5113, allocations: 2.404 MB / 0.4885 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.5113, allocations: 43.55 kB / 0.4885 GB, free: 148 kB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.826e-06/0.5113, allocations: 0 / 0.4885 GB, free: 148 kB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01179/0.5231, allocations: 5.819 MB / 0.4942 GB, free: 10.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/0.5232, allocations: 68.72 kB / 0.4943 GB, free: 10.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003085/0.5262, allocations: 1.897 MB / 0.4961 GB, free: 8.273 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.5264, allocations: 53.7 kB / 0.4962 GB, free: 8.215 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001399/0.5278, allocations: 1.537 MB / 0.4977 GB, free: 6.664 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005164/0.5283, allocations: 0.5075 MB / 0.4982 GB, free: 6.152 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005601/0.5289, allocations: 335.4 kB / 0.4985 GB, free: 5.816 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.529, allocations: 305.1 kB / 0.4988 GB, free: 5.516 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001335/0.5304, allocations: 0.7691 MB / 0.4996 GB, free: 4.746 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001866/0.5322, allocations: 1.371 MB / 0.5009 GB, free: 3.102 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003351/0.5356, allocations: 2.316 MB / 0.5032 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.505e-05/0.5356, allocations: 8 kB / 0.5032 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004751/0.5403, allocations: 2.479 MB / 0.5056 GB, free: 14.01 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/0.5404, allocations: 16 kB / 0.5056 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-05/0.5404, allocations: 23.94 kB / 0.5056 GB, free: 13.97 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004044/0.5408, allocations: 118.9 kB / 0.5057 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001828/0.5426, allocations: 483.2 kB / 0.5062 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.5439, allocations: 1.302 MB / 0.5075 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001951/0.5459, allocations: 111.9 kB / 0.5076 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001588/0.546, allocations: 88.08 kB / 0.5077 GB, free: 11.77 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.00226/0.5483, allocations: 0.9851 MB / 0.5086 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004385/0.5487, allocations: 210.6 kB / 0.5088 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003616/0.5523, allocations: 1.961 MB / 0.5107 GB, free: 8.586 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/0.5523, allocations: 16 kB / 0.5107 GB, free: 8.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.5524, allocations: 0 / 0.5107 GB, free: 8.57 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.696e-05/0.5524, allocations: 15.84 kB / 0.5108 GB, free: 8.555 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009283/0.5617, allocations: 4.959 MB / 0.5156 GB, free: 3.496 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.5617, allocations: 4 kB / 0.5156 GB, free: 3.492 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/0.563, allocations: 311.5 kB / 0.5159 GB, free: 3.188 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002962/0.5633, allocations: 98.78 kB / 0.516 GB, free: 3.082 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-05/0.5634, allocations: 27.98 kB / 0.516 GB, free: 3.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001027/0.5644, allocations: 1.271 MB / 0.5173 GB, free: 1.668 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5644, allocations: 3.938 kB / 0.5173 GB, free: 1.664 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004549/0.569, allocations: 3.099 MB / 0.5203 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009706/0.5699, allocations: 394.5 kB / 0.5207 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002351/0.5702, allocations: 24 kB / 0.5207 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009056/0.5711, allocations: 79.91 kB / 0.5208 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.5712, allocations: 101 kB / 0.5209 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.167e-05/0.5713, allocations: 39.94 kB / 0.5209 GB, free: 13.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001974/0.5733, allocations: 1.293 MB / 0.5222 GB, free: 12.56 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5733, allocations: 0 / 0.5222 GB, free: 12.56 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001816/0.5751, allocations: 0.5273 MB / 0.5227 GB, free: 12.04 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.005415/0.5805, allocations: 3.704 MB / 0.5263 GB, free: 8.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003693/0.5842, allocations: 1.972 MB / 0.5282 GB, free: 6.281 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.5842, allocations: 0 / 0.5282 GB, free: 6.281 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001586/0.5858, allocations: 0.9613 MB / 0.5292 GB, free: 5.305 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002221/0.588, allocations: 0.5102 MB / 0.5297 GB, free: 4.801 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2832/0.8712, allocations: 20.09 MB / 0.5493 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001325/0.8725, allocations: 2.269 MB / 0.5515 GB, free: 100.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001334/0.8739, allocations: 0.5082 MB / 0.552 GB, free: 99.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001127/0.875, allocations: 1.179 MB / 0.5531 GB, free: 98.66 MB / 446.1 MB Notification: Performance of SimCode: time 6.62e-07/0.875, allocations: 0 / 0.5531 GB, free: 98.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0915/0.9665, allocations: 51.47 MB / 0.6034 GB, free: 47.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.33/16.3, allocations: 8.047 kB / 0.6034 GB, free: 47.66 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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 22.591853421879932]