Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007987/0.0007989, allocations: 102.7 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009087/0.0009087, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002086/0.0002087, allocations: 7.984 kB / 307.1 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09818/0.0984, allocations: 51.53 MB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.009268/0.1077, allocations: 9.044 MB / 367.7 MB, free: 4.363 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005361/0.1131, allocations: 3.117 MB / 370.8 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008787/0.114, allocations: 51.75 kB / 370.8 MB, free: 1.184 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001199/0.1152, allocations: 0.5591 MB / 371.4 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2053/0.3205, allocations: 0.7124 MB / 372.1 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001586/0.3221, allocations: 270 kB / 372.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004749/0.3269, allocations: 3.041 MB / 375.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002442/0.3293, allocations: 1.655 MB / 377.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002209/0.3316, allocations: 1.009 MB / 378.1 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002419/0.334, allocations: 1.386 MB / 379.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003442/0.3343, allocations: 147.8 kB / 379.6 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007479/0.3351, allocations: 231.1 kB / 379.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008851/0.336, allocations: 0.7713 MB / 380.6 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008144/0.3368, allocations: 0.5536 MB / 381.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004516/0.3413, allocations: 3.755 MB / 384.9 MB, free: 8.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.957e-05/0.3414, allocations: 0 / 384.9 MB, free: 8.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3414, allocations: 0 / 384.9 MB, free: 8.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001508/0.3416, allocations: 0 / 384.9 MB, free: 8.199 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.006949/0.3485, allocations: 2.824 MB / 387.7 MB, free: 6.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.3486, allocations: 9.562 kB / 387.8 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001437/0.35, allocations: 371.5 kB / 388.1 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003528/0.3536, allocations: 1.67 MB / 389.8 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002101/0.3538, allocations: 180 kB / 390 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005052/0.3543, allocations: 229.7 kB / 390.2 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006378/0.3607, allocations: 3.134 MB / 393.3 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.363e-05/0.3608, allocations: 15.16 kB / 393.3 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/0.361, allocations: 98.88 kB / 393.4 MB, free: 4.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001185/0.3611, allocations: 103.2 kB / 393.5 MB, free: 4.477 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004544/0.3657, allocations: 2.708 MB / 396.2 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01593/0.3816, allocations: 9.777 MB / 406 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00275/0.3844, allocations: 2.18 MB / 408.2 MB, free: 7.953 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001921/0.3864, allocations: 1.134 MB / 409.3 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003073/0.3867, allocations: 205.7 kB / 409.5 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.888e-05/0.3867, allocations: 53.73 kB / 409.6 MB, free: 6.531 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.046e-06/0.3868, allocations: 0 / 409.6 MB, free: 6.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.015/0.4018, allocations: 6.95 MB / 416.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/0.4019, allocations: 68.72 kB / 416.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002876/0.4047, allocations: 1.744 MB / 418.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001452/0.4049, allocations: 49.7 kB / 418.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008982/0.4058, allocations: 1.157 MB / 419.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004085/0.4062, allocations: 452.1 kB / 420 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.093e-05/0.4063, allocations: 32 kB / 420 MB, free: 11.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.4065, allocations: 377.8 kB / 420.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002114/0.4086, allocations: 0.7964 MB / 421.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002718/0.4114, allocations: 1.214 MB / 422.4 MB, free: 9.348 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002776/0.4142, allocations: 0.9678 MB / 423.4 MB, free: 8.383 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.391e-05/0.4142, allocations: 4 kB / 423.4 MB, free: 8.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.008283/0.4225, allocations: 2.691 MB / 426.1 MB, free: 5.648 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.648e-05/0.4226, allocations: 8 kB / 426.1 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.17e-05/0.4226, allocations: 19.94 kB / 426.1 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001669/0.4243, allocations: 418.8 kB / 426.5 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002345/0.4267, allocations: 367.4 kB / 426.9 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009963/0.4367, allocations: 6.479 MB / 433.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002762/0.4395, allocations: 115.8 kB / 433.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002461/0.4397, allocations: 60 kB / 433.5 MB, free: 13.8 MB / 350.1 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[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 initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002612/0.4424, allocations: 0.8036 MB / 434.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007076/0.4431, allocations: 185.8 kB / 434.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007044/0.4501, allocations: 2.413 MB / 436.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.962e-05/0.4502, allocations: 16 kB / 436.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/0.4502, allocations: 4 kB / 436.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.94e-05/0.4502, allocations: 7.984 kB / 436.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01395/0.4642, allocations: 5.148 MB / 442.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/0.4643, allocations: 4 kB / 442.1 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/0.466, allocations: 235.6 kB / 442.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001602/0.4676, allocations: 448.5 kB / 442.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001501/0.4678, allocations: 35.98 kB / 442.8 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01198/0.4798, allocations: 7.943 MB / 450.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.4798, allocations: 4 kB / 450.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008735/0.4886, allocations: 3.543 MB / 454.3 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/0.4902, allocations: 436.7 kB / 454.7 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003513/0.4906, allocations: 39.98 kB / 454.8 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/0.4919, allocations: 87.91 kB / 454.8 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003951/0.4923, allocations: 124.7 kB / 455 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.4925, allocations: 36 kB / 455 MB, free: 7.516 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002927/0.4954, allocations: 1.199 MB / 456.2 MB, free: 6.324 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4954, allocations: 0 / 456.2 MB, free: 6.324 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003327/0.4988, allocations: 0.4961 MB / 456.7 MB, free: 5.828 MB / 366.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 1,(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.0004871/0.4993, allocations: 182 kB / 456.9 MB, free: 5.645 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006577/0.5059, allocations: 2.471 MB / 459.3 MB, free: 3.117 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.5059, allocations: 0 / 459.3 MB, free: 3.117 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004035/0.51, allocations: 1.618 MB / 461 MB, free: 1.445 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002608/0.5126, allocations: 462.5 kB / 461.4 MB, free: 1.004 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008607/0.5212, allocations: 5.94 MB / 467.3 MB, free: 11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001692/0.5229, allocations: 2.009 MB / 469.4 MB, free: 8.957 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001494/0.5244, allocations: 445.5 kB / 469.8 MB, free: 8.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004153/0.5249, allocations: 123.4 kB / 469.9 MB, free: 8.398 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5249, allocations: 0 / 469.9 MB, free: 8.398 MB / 382.1 MB Notification: Performance of Templates: time 0.04446/0.5693, allocations: 25.55 MB / 495.5 MB, free: 15.11 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches