Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.0008167/0.0008167, allocations: 79.69 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.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.0008042/0.0008042, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9018/0.9018, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.747e-05/1.928e-05, allocations: 6.219 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.007354/0.007373, allocations: 9.055 MB / 333.6 MB, free: 6.828 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005301/0.01267, allocations: 3.158 MB / 336.8 MB, free: 3.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001796/0.01447, allocations: 71.5 kB / 336.9 MB, free: 3.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.01571, allocations: 0.6946 MB / 337.6 MB, free: 2.891 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002012/0.01772, allocations: 0.9197 MB / 338.5 MB, free: 1.961 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007363/0.01846, allocations: 435.2 kB / 338.9 MB, free: 1.535 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00218/0.02064, allocations: 3.087 MB / 342 MB, free: 14.44 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001229/0.02187, allocations: 1.333 MB / 343.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002178/0.02405, allocations: 2.011 MB / 345.3 MB, free: 11.03 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00141/0.02546, allocations: 1.496 MB / 346.8 MB, free: 9.527 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002754/0.02573, allocations: 356 kB / 347.2 MB, free: 9.18 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000515/0.02625, allocations: 463.7 kB / 347.6 MB, free: 8.727 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005705/0.02682, allocations: 1.063 MB / 348.7 MB, free: 7.66 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007554/0.02757, allocations: 1.103 MB / 349.8 MB, free: 6.555 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003262/0.03084, allocations: 4.764 MB / 354.6 MB, free: 1.777 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.03084, allocations: 0 / 354.6 MB, free: 1.777 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.03084, allocations: 0 / 354.6 MB, free: 1.777 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.307e-05/0.0309, allocations: 0 / 354.6 MB, free: 1.777 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.003608/0.0345, allocations: 3.256 MB / 357.8 MB, free: 14.47 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.03455, allocations: 8.031 kB / 357.8 MB, free: 14.46 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002806/0.03483, allocations: 345.5 kB / 358.2 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008538/0.03568, allocations: 378.8 kB / 358.5 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/0.03744, allocations: 1.712 MB / 360.2 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.369e-05/0.03753, allocations: 173 kB / 360.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002015/0.03773, allocations: 240.3 kB / 360.6 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002981/0.04071, allocations: 3.245 MB / 363.9 MB, free: 8.227 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.891e-05/0.04075, allocations: 3.953 kB / 363.9 MB, free: 8.223 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.04088, allocations: 92 kB / 364 MB, free: 8.133 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.422e-05/0.04096, allocations: 108.6 kB / 364.1 MB, free: 8.023 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002971/0.04393, allocations: 2.696 MB / 366.8 MB, free: 5.312 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008583/0.05251, allocations: 8.739 MB / 375.5 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/0.05395, allocations: 1.408 MB / 376.9 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.05504, allocations: 1.043 MB / 378 MB, free: 9.848 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001625/0.05521, allocations: 52.95 kB / 378 MB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.05523, allocations: 43.56 kB / 378.1 MB, free: 9.742 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 2.595e-06/0.05524, allocations: 0 / 378.1 MB, free: 9.742 MB / 346.7 MB Notification: Performance of matching and sorting (n=131): time 0.008474/0.06371, allocations: 6.352 MB / 384.4 MB, free: 3.352 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.06375, allocations: 68.72 kB / 384.5 MB, free: 3.273 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001575/0.06532, allocations: 1.779 MB / 386.3 MB, free: 1.492 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.879e-05/0.06538, allocations: 49.7 kB / 386.3 MB, free: 1.438 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008097/0.06619, allocations: 1.19 MB / 387.5 MB, free: 240 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002373/0.06643, allocations: 464.2 kB / 388 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002731/0.0667, allocations: 287.5 kB / 388.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.037e-05/0.06677, allocations: 305.1 kB / 388.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007693/0.06754, allocations: 0.7925 MB / 389.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009349/0.06848, allocations: 1.205 MB / 390.5 MB, free: 13.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001777/0.07026, allocations: 2.098 MB / 392.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.07026, allocations: 4 kB / 392.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00286/0.07312, allocations: 2.596 MB / 395.2 MB, free: 8.129 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.07314, allocations: 12 kB / 395.2 MB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.07316, allocations: 12 kB / 395.3 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005609/0.07372, allocations: 419.5 kB / 395.7 MB, free: 7.684 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006761/0.07439, allocations: 363.4 kB / 396 MB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00436/0.07876, allocations: 6.716 MB / 402.7 MB, free: 272 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007267/0.07948, allocations: 111.8 kB / 402.9 MB, free: 160 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.187e-05/0.07955, allocations: 63.98 kB / 402.9 MB, free: 96 kB / 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.000998/0.08055, allocations: 0.8017 MB / 403.7 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/0.08074, allocations: 194.8 kB / 403.9 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002377/0.08312, allocations: 2.285 MB / 406.2 MB, free: 12.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.08313, allocations: 16 kB / 406.2 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.08313, allocations: 4 kB / 406.2 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.08314, allocations: 15.84 kB / 406.2 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00511/0.08825, allocations: 4.728 MB / 411 MB, free: 7.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.08826, allocations: 4 kB / 411 MB, free: 7.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004993/0.08876, allocations: 236 kB / 411.2 MB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006075/0.08937, allocations: 462.8 kB / 411.6 MB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.729e-05/0.08942, allocations: 35.98 kB / 411.7 MB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005127/0.09455, allocations: 8.169 MB / 419.8 MB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.09455, allocations: 7.938 kB / 419.9 MB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003769/0.09832, allocations: 3.431 MB / 423.3 MB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006474/0.09897, allocations: 362.7 kB / 423.6 MB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.0991, allocations: 40.11 kB / 423.7 MB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004928/0.09959, allocations: 83.91 kB / 423.8 MB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002025/0.0998, allocations: 124.7 kB / 423.9 MB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.844e-05/0.09984, allocations: 35.98 kB / 423.9 MB, free: 10.41 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001191/0.101, allocations: 1.214 MB / 425.1 MB, free: 9.203 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.101, allocations: 0 / 425.1 MB, free: 9.203 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001217/0.1023, allocations: 0.5038 MB / 425.6 MB, free: 8.699 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.003692/0.1059, allocations: 4.079 MB / 429.7 MB, free: 4.539 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00296/0.1089, allocations: 2.315 MB / 432 MB, free: 2.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.1089, allocations: 0 / 432 MB, free: 2.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001532/0.1104, allocations: 1.556 MB / 433.6 MB, free: 0.5742 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/0.1119, allocations: 480.1 kB / 434.1 MB, free: 116 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1674/0.2793, allocations: 19.36 MB / 453.4 MB, free: 112.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009587/0.2802, allocations: 1.445 MB / 454.9 MB, free: 112.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007731/0.281, allocations: 447.3 kB / 455.3 MB, free: 112.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006689/0.2817, allocations: 0.929 MB / 456.2 MB, free: 112.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/0.2817, allocations: 0 / 456.2 MB, free: 112.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05826/0.3399, allocations: 51.43 MB / 0.4958 GB, free: 65.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.986/8.326, allocations: 5.734 kB / 0.4958 GB, free: 65.55 MB / 410.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.259972552768886]