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.0009574/0.0009574, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001186/0.001186, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.7 MB / 247.5 MB, free: 9.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002431/0.0002431, allocations: 8 kB / 308.4 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08916/0.08942, allocations: 51.52 MB / 359.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.009632/0.09908, allocations: 9.612 MB / 369.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005844/0.105, allocations: 3.248 MB / 372.8 MB, free: 116 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001263/0.1063, allocations: 51.75 kB / 372.8 MB, free: 64 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1618/0.2681, allocations: 0.5998 MB / 373.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003015/0.2711, allocations: 0.7637 MB / 374.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009531/0.2721, allocations: 374.8 kB / 374.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004579/0.2767, allocations: 3.372 MB / 377.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002739/0.2794, allocations: 2.074 MB / 380 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001967/0.2814, allocations: 1.019 MB / 381 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002346/0.2838, allocations: 1.445 MB / 382.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004236/0.2842, allocations: 147.9 kB / 382.6 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009409/0.2852, allocations: 268.6 kB / 382.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008558/0.2861, allocations: 0.7731 MB / 383.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001726/0.2878, allocations: 1.363 MB / 385 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0036/0.2914, allocations: 3.756 MB / 388.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2914, allocations: 1.406 kB / 388.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2914, allocations: 0 / 388.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001065/0.2916, allocations: 0 / 388.8 MB, free: 5.898 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.005666/0.2972, allocations: 2.795 MB / 391.6 MB, free: 4.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2973, allocations: 9.062 kB / 391.6 MB, free: 4.008 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/0.2986, allocations: 371.8 kB / 391.9 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002773/0.3014, allocations: 1.722 MB / 393.7 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001481/0.3016, allocations: 189.3 kB / 393.8 MB, free: 2.551 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003797/0.302, allocations: 240.1 kB / 394.1 MB, free: 2.465 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005205/0.3072, allocations: 3.157 MB / 397.2 MB, free: 0.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.341e-05/0.3073, allocations: 3.031 kB / 397.2 MB, free: 0.582 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002072/0.3075, allocations: 97.78 kB / 397.3 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.57e-05/0.3076, allocations: 104.2 kB / 397.4 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004546/0.3121, allocations: 2.724 MB / 400.2 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01596/0.3281, allocations: 9.795 MB / 410 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002786/0.331, allocations: 2.173 MB / 412.1 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001913/0.3329, allocations: 1.142 MB / 413.3 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002933/0.3332, allocations: 206 kB / 413.5 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.3332, allocations: 47.55 kB / 413.5 MB, free: 1.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 2.715e-06/0.3333, allocations: 0 / 413.5 MB, free: 1.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.01475/0.348, allocations: 6.971 MB / 420.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.3481, allocations: 68.72 kB / 420.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002789/0.3509, allocations: 1.751 MB / 422.3 MB, free: 8.602 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001912/0.3511, allocations: 53.7 kB / 422.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008344/0.352, allocations: 1.165 MB / 423.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004197/0.3524, allocations: 456.6 kB / 424 MB, free: 6.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002106/0.3526, allocations: 129.6 kB / 424.1 MB, free: 6.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.961e-05/0.3527, allocations: 305.1 kB / 424.4 MB, free: 6.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.3541, allocations: 0.8159 MB / 425.2 MB, free: 5.676 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/0.3557, allocations: 1.209 MB / 426.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002992/0.3587, allocations: 2.121 MB / 428.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.727e-06/0.3587, allocations: 4 kB / 428.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004619/0.3633, allocations: 2.704 MB / 431.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.357e-05/0.3634, allocations: 8 kB / 431.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/0.3634, allocations: 16 kB / 431.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009912/0.3644, allocations: 418.9 kB / 431.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/0.3658, allocations: 367.4 kB / 432 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006525/0.3724, allocations: 6.495 MB / 438.5 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/0.3742, allocations: 119.7 kB / 438.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000182/0.3744, allocations: 60 kB / 438.7 MB, free: 7.402 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[3],idealCloser.control[2],idealCloser.control[1]) * 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 (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001677/0.376, allocations: 0.8055 MB / 439.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004504/0.3765, allocations: 193.6 kB / 439.7 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004234/0.3807, allocations: 2.403 MB / 442.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/0.3808, allocations: 12 kB / 442.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.3808, allocations: 4 kB / 442.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.3808, allocations: 3.984 kB / 442.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00909/0.3899, allocations: 5.167 MB / 447.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/0.39, allocations: 7.984 kB / 447.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009935/0.391, allocations: 235.6 kB / 447.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001159/0.3921, allocations: 447.4 kB / 448 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.3922, allocations: 39.97 kB / 448 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007618/0.3999, allocations: 7.944 MB / 456 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/0.3999, allocations: 7.938 kB / 456 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005821/0.4058, allocations: 3.554 MB / 459.5 MB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/0.4069, allocations: 438.7 kB / 459.9 MB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003209/0.4073, allocations: 35.98 kB / 460 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009959/0.4083, allocations: 91.91 kB / 460.1 MB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003152/0.4086, allocations: 120.7 kB / 460.2 MB, free: 1.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.031e-05/0.4087, allocations: 36 kB / 460.2 MB, free: 1.086 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001945/0.4106, allocations: 1.209 MB / 461.4 MB, free: 15.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4107, allocations: 0 / 461.4 MB, free: 15.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001995/0.4127, allocations: 0.5116 MB / 461.9 MB, free: 15.38 MB / 382.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,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.000448/0.4131, allocations: 203 kB / 462.1 MB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004048/0.4172, allocations: 2.485 MB / 464.6 MB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.4172, allocations: 4.062 kB / 464.6 MB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002585/0.4198, allocations: 1.621 MB / 466.2 MB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003871/0.4237, allocations: 455.9 kB / 466.7 MB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009557/0.4333, allocations: 6.247 MB / 472.9 MB, free: 4.203 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001765/0.4351, allocations: 1.961 MB / 474.9 MB, free: 2.207 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007267/0.4358, allocations: 139.4 kB / 475 MB, free: 2.07 MB / 382.1 MB Notification: Performance of SimCode: time 1.803e-06/0.4358, allocations: 0 / 475 MB, free: 2.07 MB / 382.1 MB Notification: Performance of Templates: time 0.2504/0.6863, allocations: 79.2 MB / 0.5412 GB, free: 145.7 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/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