Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008264/0.0008265, allocations: 99.58 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001104/0.001105, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.7 MB / 246.4 MB, free: 11.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002787, allocations: 4 kB / 307.1 MB, free: 1.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1273, allocations: 51.53 MB / 358.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01313/0.1405, allocations: 10.48 MB / 369.1 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2457/0.3863, allocations: 3.763 MB / 372.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00265/0.389, allocations: 60.84 kB / 372.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00274/0.3918, allocations: 0.6945 MB / 373.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003659/0.3954, allocations: 0.8426 MB / 374.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001501/0.397, allocations: 345.9 kB / 374.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005606/0.4026, allocations: 3.508 MB / 378.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002816/0.4054, allocations: 1.837 MB / 380.2 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002683/0.4081, allocations: 1.158 MB / 381.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002784/0.4109, allocations: 1.585 MB / 382.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004903/0.4114, allocations: 171.3 kB / 383.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001319/0.4127, allocations: 349.7 kB / 383.4 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001162/0.4139, allocations: 0.8643 MB / 384.3 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009428/0.4149, allocations: 0.6208 MB / 384.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004061/0.4189, allocations: 4.294 MB / 389.2 MB, free: 6.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.767e-06/0.4189, allocations: 0 / 389.2 MB, free: 6.402 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.419, allocations: 2.297 kB / 389.2 MB, free: 6.402 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000141/0.4191, allocations: 0 / 389.2 MB, free: 6.402 MB / 302.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.008342/0.4275, allocations: 3.204 MB / 392.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.756e-05/0.4275, allocations: 11.69 kB / 392.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003011/0.4306, allocations: 479.6 kB / 392.9 MB, free: 4.309 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004903/0.4355, allocations: 1.861 MB / 394.7 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003479/0.4359, allocations: 213.7 kB / 395 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008629/0.4367, allocations: 263.1 kB / 395.2 MB, free: 3.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006845/0.4436, allocations: 3.516 MB / 398.7 MB, free: 1.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.7e-05/0.4437, allocations: 6.562 kB / 398.7 MB, free: 1.266 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002551/0.444, allocations: 114.2 kB / 398.8 MB, free: 1.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001566/0.4441, allocations: 123.9 kB / 399 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005114/0.4493, allocations: 2.987 MB / 402 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0184/0.4677, allocations: 11.15 MB / 413.1 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002863/0.4706, allocations: 2.288 MB / 415.4 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001995/0.4726, allocations: 1.2 MB / 416.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003426/0.473, allocations: 214.2 kB / 416.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.535e-05/0.473, allocations: 43.88 kB / 416.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.908e-06/0.473, allocations: 4 kB / 416.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=148): time 0.01698/0.49, allocations: 7.662 MB / 424.5 MB, free: 7.629 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.525e-05/0.4901, allocations: 64.72 kB / 424.6 MB, free: 7.551 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003698/0.4938, allocations: 1.98 MB / 426.6 MB, free: 5.527 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002001/0.4941, allocations: 49.64 kB / 426.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001046/0.4951, allocations: 1.312 MB / 427.9 MB, free: 4.152 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005332/0.4957, allocations: 0.5033 MB / 428.4 MB, free: 3.652 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.879e-05/0.4958, allocations: 38.73 kB / 428.5 MB, free: 3.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.4959, allocations: 377.9 kB / 428.8 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001564/0.4975, allocations: 0.894 MB / 429.7 MB, free: 2.348 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00224/0.4998, allocations: 1.381 MB / 431.1 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002024/0.5018, allocations: 1.101 MB / 432.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/0.5018, allocations: 4 kB / 432.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005869/0.5077, allocations: 2.993 MB / 435.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.465e-05/0.5078, allocations: 11.95 kB / 435.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-05/0.5078, allocations: 19.98 kB / 435.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/0.5091, allocations: 461.1 kB / 435.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001611/0.5107, allocations: 439.3 kB / 436.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006738/0.5175, allocations: 5.587 MB / 441.7 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002602/0.5201, allocations: 139.1 kB / 441.8 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002046/0.5204, allocations: 75.98 kB / 441.9 MB, free: 5.66 MB / 350.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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 16,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002468/0.5228, allocations: 0.8602 MB / 442.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006658/0.5235, allocations: 213.4 kB / 443 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004885/0.5284, allocations: 2.614 MB / 445.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.535e-05/0.5285, allocations: 16 kB / 445.6 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.148e-05/0.5285, allocations: 11.94 kB / 445.6 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.525e-05/0.5285, allocations: 3.984 kB / 445.6 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/0.5407, allocations: 5.667 MB / 451.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/0.5407, allocations: 4 kB / 451.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001245/0.542, allocations: 296 kB / 451.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001501/0.5435, allocations: 0.4912 MB / 452.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001521/0.5437, allocations: 39.97 kB / 452.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008551/0.5522, allocations: 7.045 MB / 459.2 MB, free: 3.852 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5522, allocations: 0 / 459.2 MB, free: 3.852 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006735/0.559, allocations: 3.88 MB / 463 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001666/0.5607, allocations: 482.4 kB / 463.5 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008092/0.5615, allocations: 35.98 kB / 463.5 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001726/0.5633, allocations: 114.4 kB / 463.7 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003189/0.5636, allocations: 121 kB / 463.8 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.5637, allocations: 39.98 kB / 463.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00291/0.5667, allocations: 1.352 MB / 465.2 MB, free: 13.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5667, allocations: 0 / 465.2 MB, free: 13.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00322/0.5699, allocations: 0.5937 MB / 465.8 MB, free: 13.12 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 16,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006874/0.5706, allocations: 180.7 kB / 465.9 MB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00587/0.5765, allocations: 2.628 MB / 468.6 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.5765, allocations: 0 / 468.6 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003255/0.5798, allocations: 1.616 MB / 470.2 MB, free: 8.621 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003928/0.5837, allocations: 487.5 kB / 470.7 MB, free: 8.152 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/0.5962, allocations: 6.679 MB / 477.3 MB, free: 1.402 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002839/0.5991, allocations: 2.14 MB / 479.5 MB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00199/0.6011, allocations: 476.9 kB / 479.9 MB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006739/0.6018, allocations: 135.4 kB / 480.1 MB, free: 14.63 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6018, allocations: 0 / 480.1 MB, free: 14.63 MB / 398.1 MB Notification: Performance of Templates: time 0.05395/0.6558, allocations: 28.46 MB / 0.4966 GB, free: 2.445 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches