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.001191/0.001191, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001028/0.001028, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8824/0.8824, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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 2.174e-06/2.174e-06, allocations: 0 / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.379e-05/2.596e-05, allocations: 2.281 kB / 318.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01157/0.0116, allocations: 9.003 MB / 327.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006856/0.01846, allocations: 3.069 MB / 330.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001997/0.02045, allocations: 71.5 kB / 330.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002302/0.02276, allocations: 0.7022 MB / 331.3 MB, free: 9.434 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004178/0.02693, allocations: 0.9158 MB / 332.2 MB, free: 8.512 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001448/0.02838, allocations: 423.2 kB / 332.6 MB, free: 8.098 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00404/0.03242, allocations: 3.065 MB / 335.7 MB, free: 5.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002276/0.0347, allocations: 1.333 MB / 337 MB, free: 3.617 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003319/0.03802, allocations: 2.007 MB / 339 MB, free: 1.605 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003029/0.04104, allocations: 1.492 MB / 340.5 MB, free: 112 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001125/0.04217, allocations: 356 kB / 340.9 MB, free: 15.76 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001307/0.04348, allocations: 443.8 kB / 341.3 MB, free: 15.33 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001075/0.04455, allocations: 1.063 MB / 342.4 MB, free: 14.26 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001409/0.04596, allocations: 1.099 MB / 343.5 MB, free: 13.16 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004019/0.04998, allocations: 4.744 MB / 348.2 MB, free: 8.402 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.216e-06/0.04999, allocations: 4 kB / 348.2 MB, free: 8.398 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.04999, allocations: 0 / 348.2 MB, free: 8.398 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000145/0.05013, allocations: 0 / 348.2 MB, free: 8.398 MB / 314.7 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.005608/0.05574, allocations: 3.233 MB / 351.4 MB, free: 5.113 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.865e-05/0.05581, allocations: 8.922 kB / 351.5 MB, free: 5.105 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003762/0.05619, allocations: 337.6 kB / 351.8 MB, free: 4.766 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006078/0.0568, allocations: 342.9 kB / 352.1 MB, free: 4.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002748/0.05954, allocations: 1.685 MB / 353.8 MB, free: 2.703 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.05966, allocations: 181 kB / 354 MB, free: 2.523 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002591/0.05992, allocations: 240.3 kB / 354.2 MB, free: 2.289 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004656/0.06458, allocations: 3.237 MB / 357.5 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.866e-05/0.06463, allocations: 7.984 kB / 357.5 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001664/0.06479, allocations: 96 kB / 357.6 MB, free: 14.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.156e-05/0.06489, allocations: 108.6 kB / 357.7 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003883/0.06877, allocations: 2.688 MB / 360.3 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01096/0.07972, allocations: 8.75 MB / 369.1 MB, free: 2.984 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.08141, allocations: 1.407 MB / 370.5 MB, free: 1.578 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.08263, allocations: 1.038 MB / 371.5 MB, free: 0.543 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001833/0.08281, allocations: 56.95 kB / 371.6 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.08284, allocations: 43.56 kB / 371.6 MB, free: 444 kB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 3.257e-06/0.08285, allocations: 0 / 371.6 MB, free: 444 kB / 330.7 MB Notification: Performance of matching and sorting (n=131): time 0.009051/0.0919, allocations: 6.336 MB / 378 MB, free: 10.06 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.09194, allocations: 68.72 kB / 378 MB, free: 9.984 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001979/0.09392, allocations: 1.766 MB / 379.8 MB, free: 8.215 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.033e-05/0.094, allocations: 53.64 kB / 379.9 MB, free: 8.156 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005706/0.09457, allocations: 1.182 MB / 381 MB, free: 6.961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002417/0.09481, allocations: 472 kB / 381.5 MB, free: 6.496 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002965/0.09511, allocations: 287.4 kB / 381.8 MB, free: 6.211 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.0953, allocations: 309.1 kB / 382.1 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008322/0.09614, allocations: 0.7925 MB / 382.9 MB, free: 5.113 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009938/0.09713, allocations: 1.209 MB / 384.1 MB, free: 3.734 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001878/0.09901, allocations: 2.09 MB / 386.2 MB, free: 1.473 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.09902, allocations: 4 kB / 386.2 MB, free: 1.469 MB / 346.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003175/0.1022, allocations: 2.6 MB / 388.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3e-05/0.1022, allocations: 12 kB / 388.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.173e-05/0.1022, allocations: 12 kB / 388.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006321/0.1029, allocations: 411.5 kB / 389.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000704/0.1036, allocations: 367.4 kB / 389.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004662/0.1082, allocations: 6.723 MB / 396.3 MB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.1095, allocations: 111.8 kB / 396.4 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.1097, allocations: 63.98 kB / 396.5 MB, free: 6.816 MB / 362.7 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.001366/0.111, allocations: 0.7939 MB / 397.3 MB, free: 6.012 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003201/0.1114, allocations: 190.8 kB / 397.4 MB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002735/0.1141, allocations: 2.284 MB / 399.7 MB, free: 3.512 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.1141, allocations: 16.08 kB / 399.7 MB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.1141, allocations: 11.98 kB / 399.8 MB, free: 3.484 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.1141, allocations: 7.922 kB / 399.8 MB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006011/0.1201, allocations: 4.72 MB / 404.5 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.1201, allocations: 4 kB / 404.5 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005659/0.1207, allocations: 239.6 kB / 404.7 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007014/0.1214, allocations: 459.4 kB / 405.2 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.842e-05/0.1215, allocations: 43.91 kB / 405.2 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005641/0.1271, allocations: 8.163 MB / 413.4 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.1271, allocations: 7.938 kB / 413.4 MB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003894/0.131, allocations: 3.439 MB / 416.8 MB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008873/0.1319, allocations: 366.7 kB / 417.2 MB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.1321, allocations: 36.06 kB / 417.2 MB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007613/0.1329, allocations: 87.89 kB / 417.3 MB, free: 1.289 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002348/0.1331, allocations: 124.7 kB / 417.4 MB, free: 1.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-05/0.1332, allocations: 39.98 kB / 417.5 MB, free: 1.129 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001362/0.1345, allocations: 1.194 MB / 418.7 MB, free: 15.94 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1345, allocations: 7.938 kB / 418.7 MB, free: 15.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001471/0.136, allocations: 0.5078 MB / 419.2 MB, free: 15.43 MB / 394.7 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.004011/0.14, allocations: 4.063 MB / 423.2 MB, free: 11.28 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002891/0.1429, allocations: 2.319 MB / 425.6 MB, free: 8.922 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.1429, allocations: 0 / 425.6 MB, free: 8.922 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001606/0.1445, allocations: 1.564 MB / 427.1 MB, free: 7.309 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/0.1462, allocations: 472.2 kB / 427.6 MB, free: 6.852 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0247/0.1709, allocations: 19.31 MB / 446.9 MB, free: 2.855 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001276/0.1722, allocations: 1.431 MB / 448.3 MB, free: 1.387 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001037/0.1732, allocations: 447.4 kB / 448.8 MB, free: 0.9453 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009042/0.1741, allocations: 0.9299 MB / 449.7 MB, free: 16 kB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/0.1741, allocations: 0 / 449.7 MB, free: 16 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1982/0.3723, allocations: 51.19 MB / 0.4891 GB, free: 77.09 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.401/8.774, allocations: 8.047 kB / 0.4891 GB, free: 77.08 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 10.716608241200447]