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.00123/0.00123, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001352/0.001352, allocations: 212.3 kB / 23.72 MB, free: 4.531 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.398/1.398, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.00147/0.00147, allocations: 43.92 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2904, allocations: 53.37 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01309/0.3035, allocations: 10.41 MB / 441.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00733/0.3108, allocations: 3.772 MB / 445.3 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.3123, allocations: 79.5 kB / 445.4 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00211/0.3145, allocations: 0.8427 MB / 446.2 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002995/0.3175, allocations: 1.041 MB / 447.2 MB, free: 6.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.3187, allocations: 0.5305 MB / 447.8 MB, free: 5.883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004189/0.3229, allocations: 3.471 MB / 451.2 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002317/0.3252, allocations: 1.538 MB / 452.8 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002526/0.3278, allocations: 1.596 MB / 454.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00311/0.3309, allocations: 1.985 MB / 456.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007784/0.3317, allocations: 408 kB / 456.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001323/0.333, allocations: 0.6439 MB / 457.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00126/0.3342, allocations: 1.157 MB / 458.6 MB, free: 11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002051/0.3363, allocations: 1.494 MB / 460.1 MB, free: 9.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006112/0.3424, allocations: 5.426 MB / 465.5 MB, free: 4.055 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3424, allocations: 4 kB / 465.5 MB, free: 4.051 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3424, allocations: 3.938 kB / 465.5 MB, free: 4.047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.544e-05/0.3425, allocations: 0 / 465.5 MB, free: 4.047 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.00818/0.3507, allocations: 3.738 MB / 469.2 MB, free: 264 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.3507, allocations: 8.031 kB / 469.2 MB, free: 256 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000559/0.3513, allocations: 396 kB / 469.6 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001758/0.353, allocations: 486.5 kB / 470.1 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004259/0.3573, allocations: 1.91 MB / 472 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001839/0.3575, allocations: 209.4 kB / 472.2 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004649/0.358, allocations: 264 kB / 472.5 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006482/0.3644, allocations: 3.65 MB / 476.1 MB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.465e-05/0.3645, allocations: 0 / 476.1 MB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002626/0.3648, allocations: 116 kB / 476.2 MB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/0.3649, allocations: 125.2 kB / 476.4 MB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005634/0.3705, allocations: 2.968 MB / 479.3 MB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02142/0.392, allocations: 9.964 MB / 489.3 MB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002858/0.3948, allocations: 1.499 MB / 490.8 MB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002114/0.3969, allocations: 1.086 MB / 491.9 MB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002918/0.3972, allocations: 57.27 kB / 491.9 MB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.83e-05/0.3973, allocations: 47.81 kB / 492 MB, free: 8.996 MB / 398.1 MB Notification: Performance of pre-optimization done (n=131): time 4.148e-06/0.3973, allocations: 3.938 kB / 492 MB, free: 8.992 MB / 398.1 MB Notification: Performance of matching and sorting (n=148): time 0.01821/0.4155, allocations: 7.099 MB / 499.1 MB, free: 1.871 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.551e-05/0.4156, allocations: 64.72 kB / 499.1 MB, free: 1.797 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00371/0.4193, allocations: 2.019 MB / 0.4894 GB, free: 15.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002119/0.4195, allocations: 49.7 kB / 0.4895 GB, free: 15.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001263/0.4208, allocations: 1.358 MB / 0.4908 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007135/0.4215, allocations: 0.5267 MB / 0.4913 GB, free: 13.78 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000623/0.4221, allocations: 327.5 kB / 0.4916 GB, free: 13.45 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.4223, allocations: 301.1 kB / 0.4919 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001598/0.4239, allocations: 0.8901 MB / 0.4928 GB, free: 12.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002042/0.4259, allocations: 1.368 MB / 0.4941 GB, free: 10.69 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003804/0.4297, allocations: 2.381 MB / 0.4964 GB, free: 8.098 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.685e-05/0.4297, allocations: 4 kB / 0.4964 GB, free: 8.094 MB / 414.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.00607/0.4358, allocations: 2.915 MB / 0.4993 GB, free: 5.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/0.4358, allocations: 12.38 kB / 0.4993 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.959e-05/0.4359, allocations: 20 kB / 0.4993 GB, free: 5.129 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001262/0.4371, allocations: 456.2 kB / 0.4998 GB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00169/0.4388, allocations: 439.2 kB / 0.5002 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007558/0.4464, allocations: 5.843 MB / 0.5059 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002118/0.4485, allocations: 119.8 kB / 0.506 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001841/0.4487, allocations: 75.98 kB / 0.5061 GB, free: 14 MB / 430.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.001801/0.4505, allocations: 0.8563 MB / 0.5069 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005505/0.451, allocations: 226.5 kB / 0.5071 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004739/0.4558, allocations: 2.504 MB / 0.5096 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.522e-05/0.4558, allocations: 16 kB / 0.5096 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.4558, allocations: 8 kB / 0.5096 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.759e-05/0.4558, allocations: 7.969 kB / 0.5096 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/0.4666, allocations: 5.196 MB / 0.5147 GB, free: 5.027 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/0.4666, allocations: 4 kB / 0.5147 GB, free: 5.023 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.4679, allocations: 279.6 kB / 0.5149 GB, free: 4.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001396/0.4693, allocations: 0.4944 MB / 0.5154 GB, free: 4.246 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.4694, allocations: 35.98 kB / 0.5155 GB, free: 4.211 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0088/0.4782, allocations: 7.315 MB / 0.5226 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.4782, allocations: 11.88 kB / 0.5226 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006876/0.4851, allocations: 3.757 MB / 0.5263 GB, free: 8.715 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001488/0.4866, allocations: 422.4 kB / 0.5267 GB, free: 8.301 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003859/0.4869, allocations: 32 kB / 0.5267 GB, free: 8.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.4882, allocations: 95.88 kB / 0.5268 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003292/0.4885, allocations: 133 kB / 0.5269 GB, free: 8.047 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.4886, allocations: 43.98 kB / 0.527 GB, free: 8.004 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002163/0.4908, allocations: 1.364 MB / 0.5283 GB, free: 6.617 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4908, allocations: 3.938 kB / 0.5283 GB, free: 6.613 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002169/0.4929, allocations: 0.5898 MB / 0.5289 GB, free: 6.023 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.007048/0.5, allocations: 4.436 MB / 0.5332 GB, free: 1.512 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2123/0.7123, allocations: 2.436 MB / 0.5356 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/0.7123, allocations: 5.281 kB / 0.5356 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002905/0.7152, allocations: 1.544 MB / 0.5371 GB, free: 103.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00272/0.7179, allocations: 0.4889 MB / 0.5376 GB, free: 103.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02953/0.7474, allocations: 21.67 MB / 0.5587 GB, free: 88.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001466/0.7489, allocations: 1.585 MB / 0.5603 GB, free: 86.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001407/0.7503, allocations: 473 kB / 0.5607 GB, free: 86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/0.7514, allocations: 1.066 MB / 0.5618 GB, free: 84.93 MB / 446.1 MB Notification: Performance of SimCode: time 1.513e-06/0.7514, allocations: 0 / 0.5618 GB, free: 84.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1314/0.8828, allocations: 57.68 MB / 0.6181 GB, free: 27.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/14.05, allocations: 4.062 kB / 0.6181 GB, free: 27.81 MB / 446.1 MB " [Timeout remaining time 646] (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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 21.52388664399041]