Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.001542/0.001542, 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.001713/0.001713, 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.375/1.375, allocations: 225.6 MB / 249.1 MB, free: 3.645 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.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 47.92 kB / 365.7 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1068, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01241/0.1192, allocations: 10.24 MB / 428 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006072/0.1253, allocations: 3.229 MB / 431.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.1264, allocations: 59.75 kB / 431.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001781/0.1282, allocations: 0.7337 MB / 432.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002488/0.1307, allocations: 0.8855 MB / 432.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000994/0.1317, allocations: 403.4 kB / 433.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003913/0.1356, allocations: 2.974 MB / 436.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002334/0.1379, allocations: 1.782 MB / 438.1 MB, free: 8.199 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001954/0.1399, allocations: 1.351 MB / 439.4 MB, free: 6.844 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002774/0.1426, allocations: 1.744 MB / 441.2 MB, free: 5.094 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005485/0.1432, allocations: 356 kB / 441.5 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008993/0.1441, allocations: 451.8 kB / 442 MB, free: 4.305 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001085/0.1452, allocations: 1.028 MB / 443 MB, free: 3.273 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002129/0.1473, allocations: 1.606 MB / 444.6 MB, free: 1.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2164/0.3637, allocations: 4.691 MB / 449.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.884e-06/0.3637, allocations: 0 / 449.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3637, allocations: 0 / 449.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001744/0.3639, allocations: 0 / 449.3 MB, free: 15.63 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.008135/0.372, allocations: 3.346 MB / 452.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.372, allocations: 6.938 kB / 452.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004762/0.3725, allocations: 342.9 kB / 453 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008398/0.3733, allocations: 344.2 kB / 453.3 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003652/0.377, allocations: 1.758 MB / 455.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001689/0.3772, allocations: 175.3 kB / 455.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004516/0.3776, allocations: 241 kB / 455.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006159/0.3838, allocations: 3.134 MB / 458.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.407e-05/0.3838, allocations: 10.86 kB / 458.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002282/0.3841, allocations: 93.59 kB / 458.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.3842, allocations: 106.1 kB / 458.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00472/0.3889, allocations: 2.698 MB / 461.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0161/0.405, allocations: 9.651 MB / 471.2 MB, free: 7.801 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00237/0.4074, allocations: 2.08 MB / 473.3 MB, free: 6.242 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001741/0.4091, allocations: 1.052 MB / 474.3 MB, free: 5.738 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002636/0.4094, allocations: 204.9 kB / 474.5 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.4094, allocations: 52.08 kB / 474.6 MB, free: 5.484 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.066e-06/0.4094, allocations: 0 / 474.6 MB, free: 5.484 MB / 366.1 MB Notification: Performance of matching and sorting (n=131): time 0.01253/0.4219, allocations: 6.869 MB / 481.4 MB, free: 1.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.422, allocations: 66.89 kB / 481.5 MB, free: 1.449 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002069/0.424, allocations: 1.741 MB / 483.2 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.504e-05/0.4241, allocations: 49.67 kB / 483.3 MB, free: 496 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007671/0.4249, allocations: 1.182 MB / 484.5 MB, free: 15.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004033/0.4253, allocations: 477.5 kB / 484.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004547/0.4258, allocations: 285.2 kB / 485.2 MB, free: 14.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.4259, allocations: 312.6 kB / 485.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.4271, allocations: 0.8013 MB / 486.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001541/0.4286, allocations: 1.2 MB / 487.5 MB, free: 13.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002864/0.4315, allocations: 2.099 MB / 489.6 MB, free: 11.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.4315, allocations: 3.938 kB / 489.6 MB, free: 11.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004913/0.4364, allocations: 2.671 MB / 492.3 MB, free: 9.516 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/0.4365, allocations: 12 kB / 492.3 MB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/0.4365, allocations: 12 kB / 492.3 MB, free: 9.492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.4375, allocations: 424.2 kB / 492.7 MB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/0.4388, allocations: 356 kB / 493.1 MB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008082/0.4469, allocations: 7.081 MB / 0.4884 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001728/0.4486, allocations: 111.9 kB / 0.4885 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002974/0.4489, allocations: 60 kB / 0.4886 GB, free: 1.133 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002265/0.4512, allocations: 0.7948 MB / 0.4894 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007777/0.452, allocations: 198.8 kB / 0.4896 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005051/0.457, allocations: 2.366 MB / 0.4919 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-05/0.4571, allocations: 19.94 kB / 0.4919 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.667e-05/0.4571, allocations: 4 kB / 0.4919 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/0.4571, allocations: 7.969 kB / 0.4919 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01146/0.4686, allocations: 5.089 MB / 0.4969 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.4686, allocations: 5.281 kB / 0.4969 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.4696, allocations: 241.4 kB / 0.4971 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.4708, allocations: 450.6 kB / 0.4975 GB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001215/0.4709, allocations: 31.98 kB / 0.4976 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/0.4816, allocations: 8.658 MB / 0.506 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.4816, allocations: 7.984 kB / 0.506 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007134/0.4887, allocations: 3.515 MB / 0.5095 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/0.4903, allocations: 447.8 kB / 0.5099 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006094/0.4909, allocations: 32 kB / 0.5099 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/0.4923, allocations: 83.89 kB / 0.51 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003364/0.4926, allocations: 120.3 kB / 0.5101 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.4927, allocations: 43.98 kB / 0.5102 GB, free: 10.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00274/0.4954, allocations: 1.194 MB / 0.5113 GB, free: 9.219 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4954, allocations: 0 / 0.5113 GB, free: 9.219 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002682/0.4981, allocations: 0.5038 MB / 0.5118 GB, free: 8.715 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,100.0%), (1,6,100.0%), (2,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.007408/0.5055, allocations: 4.168 MB / 0.5159 GB, free: 4.484 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004465/0.51, allocations: 2.389 MB / 0.5182 GB, free: 2.082 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.51, allocations: 1.875 kB / 0.5182 GB, free: 2.082 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002755/0.5128, allocations: 1.558 MB / 0.5197 GB, free: 0.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00263/0.5154, allocations: 465.6 kB / 0.5202 GB, free: 60 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03831/0.5537, allocations: 19.49 MB / 0.5392 GB, free: 12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002954/0.5567, allocations: 2 MB / 0.5412 GB, free: 9.973 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001548/0.5582, allocations: 447.5 kB / 0.5416 GB, free: 9.531 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001628/0.5598, allocations: 0.9171 MB / 0.5425 GB, free: 8.617 MB / 446.1 MB Notification: Performance of SimCode: time 1.482e-06/0.5598, allocations: 0 / 0.5425 GB, free: 8.617 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1127/0.6725, allocations: 48.21 MB / 0.5896 GB, free: 8.895 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.16/27.83, allocations: 0 / 0.5896 GB, free: 8.895 MB / 494.1 MB " [Timeout remaining time 632] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 30.635996440891176]