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.001459/0.001459, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001513/0.001513, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.492/1.492, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001516/0.001516, allocations: 47.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09484/0.09636, allocations: 53.32 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2368/0.3332, allocations: 15.87 MB / 442.2 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01308/0.3463, allocations: 5.36 MB / 447.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004009/0.3503, allocations: 124.4 kB / 447.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004198/0.3545, allocations: 1.151 MB / 448.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00576/0.3602, allocations: 1.281 MB / 450.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003258/0.3635, allocations: 0.9251 MB / 451 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006827/0.3703, allocations: 3.644 MB / 454.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004879/0.3752, allocations: 2.371 MB / 457.1 MB, free: 9.648 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005215/0.3804, allocations: 1.78 MB / 458.8 MB, free: 8.777 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005898/0.3863, allocations: 2.152 MB / 461 MB, free: 7.742 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001796/0.3881, allocations: 479.3 kB / 461.5 MB, free: 7.742 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002907/0.391, allocations: 0.7032 MB / 462.2 MB, free: 7.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001575/0.3926, allocations: 1.156 MB / 463.3 MB, free: 6.945 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004353/0.3969, allocations: 2.051 MB / 465.4 MB, free: 5.562 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009351/0.4063, allocations: 6.316 MB / 471.7 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.4063, allocations: 2.031 kB / 471.7 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.4063, allocations: 0 / 471.7 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002135/0.4065, allocations: 0 / 471.7 MB, free: 0.8125 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.01375/0.4203, allocations: 4.367 MB / 476.1 MB, free: 13.79 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/0.4203, allocations: 9.781 kB / 476.1 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007823/0.4211, allocations: 445.8 kB / 476.5 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003113/0.4242, allocations: 0.6341 MB / 477.1 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00512/0.4293, allocations: 2.313 MB / 479.4 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002242/0.4296, allocations: 238.9 kB / 479.7 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006993/0.4303, allocations: 311.6 kB / 480 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007542/0.4378, allocations: 4.051 MB / 484 MB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.055e-05/0.4379, allocations: 11.94 kB / 484 MB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003222/0.4382, allocations: 128 kB / 484.2 MB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001661/0.4384, allocations: 146.2 kB / 484.3 MB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006513/0.4449, allocations: 3.39 MB / 487.7 MB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02347/0.4683, allocations: 13.38 MB / 0.4893 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004825/0.4732, allocations: 4.167 MB / 0.4934 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001697/0.4749, allocations: 0.9338 MB / 0.4943 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005214/0.4801, allocations: 2.862 MB / 0.4971 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.4801, allocations: 47.5 kB / 0.4972 GB, free: 12.76 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.615e-06/0.4801, allocations: 0 / 0.4972 GB, free: 12.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01302/0.4931, allocations: 6.042 MB / 0.5031 GB, free: 6.633 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.536e-05/0.4932, allocations: 68.72 kB / 0.5031 GB, free: 6.551 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003195/0.4964, allocations: 1.913 MB / 0.505 GB, free: 4.594 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001604/0.4966, allocations: 45.7 kB / 0.505 GB, free: 4.543 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001332/0.4979, allocations: 1.556 MB / 0.5066 GB, free: 2.973 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005654/0.4985, allocations: 0.5036 MB / 0.5071 GB, free: 2.465 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005637/0.499, allocations: 339.4 kB / 0.5074 GB, free: 2.125 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.4991, allocations: 305.1 kB / 0.5077 GB, free: 1.824 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.5004, allocations: 0.77 MB / 0.5084 GB, free: 1.055 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/0.5022, allocations: 1.379 MB / 0.5098 GB, free: 15.41 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003209/0.5054, allocations: 2.32 MB / 0.512 GB, free: 12.82 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.692e-05/0.5054, allocations: 7.938 kB / 0.512 GB, free: 12.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004536/0.51, allocations: 2.483 MB / 0.5145 GB, free: 10.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.529e-05/0.51, allocations: 20.75 kB / 0.5145 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.111e-05/0.51, allocations: 23.94 kB / 0.5145 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003863/0.5104, allocations: 118.5 kB / 0.5146 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001826/0.5122, allocations: 488 kB / 0.5151 GB, free: 9.672 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/0.5135, allocations: 1.406 MB / 0.5165 GB, free: 8.121 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001708/0.5152, allocations: 115.8 kB / 0.5166 GB, free: 8.008 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001481/0.5153, allocations: 87.98 kB / 0.5167 GB, free: 7.922 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.001789/0.5171, allocations: 0.989 MB / 0.5176 GB, free: 6.922 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005017/0.5176, allocations: 214.6 kB / 0.5178 GB, free: 6.711 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003663/0.5213, allocations: 1.962 MB / 0.5197 GB, free: 4.73 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.5213, allocations: 16 kB / 0.5198 GB, free: 4.715 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.5213, allocations: 0 / 0.5198 GB, free: 4.715 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.5213, allocations: 7.969 kB / 0.5198 GB, free: 4.707 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008725/0.53, allocations: 4.995 MB / 0.5246 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.53, allocations: 4 kB / 0.5246 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001386/0.5314, allocations: 307.5 kB / 0.5249 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003137/0.5317, allocations: 102.7 kB / 0.525 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.441e-05/0.5318, allocations: 24 kB / 0.5251 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.5329, allocations: 1.381 MB / 0.5264 GB, free: 13.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.5329, allocations: 4 kB / 0.5264 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004823/0.5377, allocations: 3.087 MB / 0.5294 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001177/0.5389, allocations: 471.6 kB / 0.5299 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002565/0.5392, allocations: 28.06 kB / 0.5299 GB, free: 9.996 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.5402, allocations: 87.83 kB / 0.53 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.5403, allocations: 81.14 kB / 0.5301 GB, free: 9.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.756e-05/0.5404, allocations: 47.98 kB / 0.5301 GB, free: 9.785 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002112/0.5425, allocations: 1.294 MB / 0.5314 GB, free: 8.469 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5425, allocations: 0 / 0.5314 GB, free: 8.469 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001933/0.5445, allocations: 0.539 MB / 0.5319 GB, free: 7.93 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.005255/0.5497, allocations: 3.719 MB / 0.5355 GB, free: 4.145 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003564/0.5533, allocations: 2.125 MB / 0.5376 GB, free: 1.965 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.5533, allocations: 0 / 0.5376 GB, free: 1.965 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.5549, allocations: 1.105 MB / 0.5387 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002821/0.5578, allocations: 0.5308 MB / 0.5392 GB, free: 292 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03396/0.5917, allocations: 20.08 MB / 0.5588 GB, free: 11.42 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002328/0.594, allocations: 2.264 MB / 0.561 GB, free: 9.117 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001755/0.5958, allocations: 0.5172 MB / 0.5615 GB, free: 8.598 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001696/0.5975, allocations: 1.183 MB / 0.5627 GB, free: 7.414 MB / 478.1 MB Notification: Performance of SimCode: time 8.71e-07/0.5975, allocations: 0 / 0.5627 GB, free: 7.414 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1387/0.7362, allocations: 50.42 MB / 0.6119 GB, free: 5.441 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.23/14.96, allocations: 11.67 kB / 0.6119 GB, free: 5.43 MB / 0.5137 GB " [Timeout remaining time 645] (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: 21.35927563579753]