Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 117.7 kB / 17.7 MB, free: 5.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 191 kB / 18.63 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001013/0.001013, allocations: 47.48 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08934/0.09037, allocations: 49.45 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01407/0.1045, allocations: 11.79 MB / 363.3 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008168/0.1127, allocations: 3.928 MB / 367.2 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001737/0.1145, allocations: 63.75 kB / 367.3 MB, free: 3.816 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002514/0.117, allocations: 0.8501 MB / 368.1 MB, free: 2.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003489/0.1205, allocations: 0.9744 MB / 369.1 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001396/0.122, allocations: 0.5305 MB / 369.7 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1643/0.2863, allocations: 3.433 MB / 373.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002889/0.2892, allocations: 2.717 MB / 375.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002033/0.2913, allocations: 1.531 MB / 377.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00246/0.2938, allocations: 1.939 MB / 379.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005566/0.2943, allocations: 409.2 kB / 379.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001181/0.2955, allocations: 0.6452 MB / 380.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009787/0.2965, allocations: 1.147 MB / 381.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001657/0.2982, allocations: 1.836 MB / 383.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004411/0.3026, allocations: 5.373 MB / 388.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3026, allocations: 0 / 388.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3026, allocations: 4 kB / 388.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.328e-05/0.3027, allocations: 1.094 kB / 388.7 MB, free: 7.492 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.006347/0.3091, allocations: 3.709 MB / 392.4 MB, free: 4.988 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.3091, allocations: 9.625 kB / 392.4 MB, free: 4.988 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001232/0.3103, allocations: 442.3 kB / 392.8 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00309/0.3134, allocations: 1.95 MB / 394.8 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.3136, allocations: 212.9 kB / 395 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000338/0.3139, allocations: 268.7 kB / 395.2 MB, free: 3.316 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005235/0.3191, allocations: 3.523 MB / 398.8 MB, free: 1.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.601e-05/0.3192, allocations: 7.344 kB / 398.8 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002243/0.3195, allocations: 106.7 kB / 398.9 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001212/0.3196, allocations: 125.5 kB / 399 MB, free: 1.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004625/0.3242, allocations: 2.968 MB / 402 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01573/0.34, allocations: 10.96 MB / 412.9 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002501/0.3425, allocations: 2.283 MB / 415.2 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001785/0.3443, allocations: 1.194 MB / 416.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002811/0.3446, allocations: 206.5 kB / 416.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.3446, allocations: 47.88 kB / 416.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 2.905e-06/0.3446, allocations: 0 / 416.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=148): time 0.01491/0.3595, allocations: 7.493 MB / 424.2 MB, free: 7.945 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.3596, allocations: 79.52 kB / 424.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002783/0.3624, allocations: 1.975 MB / 426.2 MB, free: 5.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001066/0.3625, allocations: 53.7 kB / 426.3 MB, free: 5.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008366/0.3634, allocations: 1.307 MB / 427.6 MB, free: 4.465 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003726/0.3637, allocations: 0.5057 MB / 428.1 MB, free: 3.965 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005106/0.3643, allocations: 331.2 kB / 428.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.155e-05/0.3644, allocations: 301.1 kB / 428.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001367/0.3657, allocations: 0.8861 MB / 429.6 MB, free: 2.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.3674, allocations: 1.375 MB / 430.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003106/0.3705, allocations: 2.381 MB / 433.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.3705, allocations: 4 kB / 433.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004687/0.3752, allocations: 2.983 MB / 436.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.3753, allocations: 12 kB / 436.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.3753, allocations: 12 kB / 436.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.3764, allocations: 470.1 kB / 436.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/0.3779, allocations: 436.2 kB / 437.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00629/0.3842, allocations: 6.083 MB / 443.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/0.386, allocations: 127.8 kB / 443.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/0.3862, allocations: 72 kB / 443.5 MB, free: 4.016 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 (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.001426/0.3876, allocations: 0.8599 MB / 444.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000383/0.388, allocations: 209.5 kB / 444.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004061/0.3921, allocations: 2.597 MB / 447.2 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.95e-05/0.3921, allocations: 20 kB / 447.2 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.3921, allocations: 4 kB / 447.2 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.3921, allocations: 7.969 kB / 447.2 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009096/0.4012, allocations: 5.615 MB / 452.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.4013, allocations: 4 kB / 452.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.4025, allocations: 282.2 kB / 453.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001264/0.4037, allocations: 497.2 kB / 453.6 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001199/0.4039, allocations: 35.98 kB / 453.6 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007267/0.4112, allocations: 7.681 MB / 461.3 MB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.4112, allocations: 7.938 kB / 461.3 MB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005844/0.417, allocations: 3.842 MB / 465.1 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001262/0.4183, allocations: 482.3 kB / 465.6 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002806/0.4186, allocations: 35.98 kB / 465.6 MB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/0.4197, allocations: 99.89 kB / 465.7 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002844/0.42, allocations: 120.5 kB / 465.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.4201, allocations: 43.98 kB / 465.9 MB, free: 13.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001981/0.4221, allocations: 1.356 MB / 467.3 MB, free: 11.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4221, allocations: 4 kB / 467.3 MB, free: 11.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002003/0.4242, allocations: 0.589 MB / 467.9 MB, free: 11.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 (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.0004163/0.4246, allocations: 220.8 kB / 468.1 MB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003982/0.4286, allocations: 2.608 MB / 470.7 MB, free: 8.316 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.4286, allocations: 7.938 kB / 470.7 MB, free: 8.309 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002435/0.431, allocations: 1.605 MB / 472.3 MB, free: 6.695 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002103/0.4331, allocations: 0.4906 MB / 472.8 MB, free: 6.211 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008221/0.4414, allocations: 5.598 MB / 478.4 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001936/0.4433, allocations: 2.132 MB / 480.5 MB, free: 14.4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001732/0.4451, allocations: 469 kB / 481 MB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000464/0.4456, allocations: 139.4 kB / 481.1 MB, free: 13.8 MB / 398.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4456, allocations: 4 kB / 481.1 MB, free: 13.8 MB / 398.1 MB Notification: Performance of Templates: time 0.04913/0.4947, allocations: 30.93 MB / 0.5 GB, free: 15.25 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches