Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_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.001917/0.001917, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.002477/0.002477, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.544/1.544, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 63.91 kB / 373 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1132, allocations: 53.33 MB / 426.3 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.2411/0.3543, allocations: 11.89 MB / 438.2 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008989/0.3633, allocations: 4.002 MB / 442.2 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003472/0.3668, allocations: 79.78 kB / 442.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003199/0.37, allocations: 0.9026 MB / 443.2 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004083/0.374, allocations: 1.018 MB / 444.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001848/0.3759, allocations: 0.5245 MB / 444.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005795/0.3817, allocations: 3.469 MB / 448.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003398/0.3851, allocations: 1.966 MB / 450.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003674/0.3888, allocations: 1.577 MB / 451.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004263/0.393, allocations: 1.979 MB / 453.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001084/0.3941, allocations: 409.5 kB / 454.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002366/0.3965, allocations: 0.653 MB / 454.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001742/0.3982, allocations: 1.151 MB / 455.9 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004041/0.4023, allocations: 1.849 MB / 457.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008929/0.4112, allocations: 5.402 MB / 463.2 MB, free: 7.461 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.4112, allocations: 4 kB / 463.2 MB, free: 7.457 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.4112, allocations: 0 / 463.2 MB, free: 7.457 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001852/0.4114, allocations: 0 / 463.2 MB, free: 7.457 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.01192/0.4233, allocations: 3.827 MB / 467 MB, free: 4.824 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.4234, allocations: 10.06 kB / 467 MB, free: 4.824 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001056/0.4244, allocations: 386.1 kB / 467.4 MB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002387/0.4268, allocations: 493.7 kB / 467.9 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005349/0.4322, allocations: 1.992 MB / 469.9 MB, free: 2.898 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002866/0.4324, allocations: 203 kB / 470.1 MB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009408/0.4334, allocations: 266.4 kB / 470.3 MB, free: 2.715 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00764/0.441, allocations: 3.526 MB / 473.9 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.547e-05/0.4411, allocations: 3.375 kB / 473.9 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002845/0.4414, allocations: 111.4 kB / 474 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001535/0.4415, allocations: 122.7 kB / 474.1 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006187/0.4477, allocations: 2.972 MB / 477.1 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02123/0.469, allocations: 11 MB / 488.1 MB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003219/0.4722, allocations: 2.18 MB / 490.3 MB, free: 372 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002124/0.4743, allocations: 1.102 MB / 491.4 MB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003617/0.4747, allocations: 211.5 kB / 491.6 MB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.546e-05/0.4747, allocations: 43.88 kB / 491.6 MB, free: 14.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=131): time 3.326e-06/0.4747, allocations: 0 / 491.6 MB, free: 14.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=148): time 0.0186/0.4933, allocations: 7.545 MB / 499.1 MB, free: 7.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.4934, allocations: 68.72 kB / 499.2 MB, free: 7.207 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003627/0.497, allocations: 1.992 MB / 0.4895 GB, free: 5.172 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003682/0.4974, allocations: 61.64 kB / 0.4895 GB, free: 5.105 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001247/0.4986, allocations: 1.343 MB / 0.4908 GB, free: 3.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006621/0.4993, allocations: 0.5345 MB / 0.4914 GB, free: 3.211 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000617/0.4999, allocations: 327.5 kB / 0.4917 GB, free: 2.883 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.5, allocations: 301.1 kB / 0.492 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001639/0.5017, allocations: 0.8823 MB / 0.4928 GB, free: 1.703 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002163/0.5038, allocations: 1.372 MB / 0.4942 GB, free: 124 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003848/0.5077, allocations: 2.385 MB / 0.4965 GB, free: 13.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.958e-06/0.5077, allocations: 4 kB / 0.4965 GB, free: 13.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005955/0.5136, allocations: 2.991 MB / 0.4994 GB, free: 10.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.5137, allocations: 8 kB / 0.4994 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-05/0.5137, allocations: 16.38 kB / 0.4994 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001255/0.5149, allocations: 462.2 kB / 0.4999 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/0.5167, allocations: 435.3 kB / 0.5003 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007987/0.5247, allocations: 6.092 MB / 0.5062 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002195/0.5269, allocations: 123.8 kB / 0.5064 GB, free: 3.105 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003137/0.5272, allocations: 76 kB / 0.5064 GB, free: 3.031 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002147/0.5293, allocations: 0.8562 MB / 0.5073 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008325/0.5302, allocations: 229 kB / 0.5075 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005544/0.5357, allocations: 2.587 MB / 0.51 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-05/0.5358, allocations: 19.94 kB / 0.51 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/0.5358, allocations: 4 kB / 0.51 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.857e-05/0.5358, allocations: 7.969 kB / 0.51 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01218/0.548, allocations: 5.606 MB / 0.5155 GB, free: 9.539 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/0.548, allocations: 4 kB / 0.5155 GB, free: 9.535 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.5493, allocations: 280 kB / 0.5158 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001497/0.5508, allocations: 499.7 kB / 0.5163 GB, free: 8.766 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000164/0.5509, allocations: 43.97 kB / 0.5163 GB, free: 8.723 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009334/0.5603, allocations: 7.682 MB / 0.5238 GB, free: 0.625 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.5603, allocations: 0 / 0.5238 GB, free: 0.625 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007663/0.568, allocations: 3.848 MB / 0.5276 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001581/0.5695, allocations: 483.5 kB / 0.528 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007769/0.5703, allocations: 35.98 kB / 0.5281 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001747/0.5721, allocations: 99.89 kB / 0.5282 GB, free: 12.06 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003568/0.5724, allocations: 121 kB / 0.5283 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001403/0.5726, allocations: 47.98 kB / 0.5283 GB, free: 11.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002958/0.5755, allocations: 1.364 MB / 0.5296 GB, free: 10.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5755, allocations: 4 kB / 0.5296 GB, free: 10.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003102/0.5786, allocations: 0.5859 MB / 0.5302 GB, free: 9.918 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,16,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.008007/0.5866, allocations: 4.502 MB / 0.5346 GB, free: 5.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005097/0.5917, allocations: 2.517 MB / 0.5371 GB, free: 2.754 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.5917, allocations: 5.75 kB / 0.5371 GB, free: 2.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003027/0.5948, allocations: 1.552 MB / 0.5386 GB, free: 1.156 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003626/0.5984, allocations: 0.5034 MB / 0.5391 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04613/0.6445, allocations: 21.79 MB / 0.5604 GB, free: 10.15 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003088/0.6476, allocations: 2.14 MB / 0.5625 GB, free: 7.977 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001918/0.6495, allocations: 469 kB / 0.5629 GB, free: 7.516 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001817/0.6513, allocations: 1.069 MB / 0.564 GB, free: 6.445 MB / 478.1 MB Notification: Performance of SimCode: time 9.31e-07/0.6513, allocations: 0 / 0.564 GB, free: 6.445 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1231/0.7745, allocations: 53.81 MB / 0.6165 GB, free: 1.094 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.79/15.57, allocations: 6.562 kB / 0.6165 GB, free: 1.09 MB / 0.5137 GB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 23.669036471052095]