Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 196.4 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 229.5 MB / 247.7 MB, free: 6.289 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001065/0.001065, allocations: 106 kB / 299.9 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002005/0.0002005, allocations: 4 kB / 360.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1845, allocations: 51.41 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.006717/0.1913, allocations: 9.048 MB / 421.1 MB, free: 16.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003993/0.1953, allocations: 3.823 MB / 424.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006175/0.1959, allocations: 55.69 kB / 425 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.197, allocations: 0.6058 MB / 425.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001276/0.1983, allocations: 0.7616 MB / 426.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005052/0.1988, allocations: 367.6 kB / 426.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001871/0.2007, allocations: 3.371 MB / 430.1 MB, free: 7.652 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001636/0.2023, allocations: 2.08 MB / 432.2 MB, free: 5.508 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008495/0.2032, allocations: 1.035 MB / 433.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001118/0.2043, allocations: 1.424 MB / 434.6 MB, free: 3.039 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002334/0.2045, allocations: 148 kB / 434.8 MB, free: 2.895 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004953/0.205, allocations: 267.8 kB / 435 MB, free: 2.633 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000503/0.2056, allocations: 0.7668 MB / 435.8 MB, free: 1.863 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008503/0.2064, allocations: 1.354 MB / 437.1 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00319/0.2096, allocations: 4.383 MB / 441.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2096, allocations: 0 / 441.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2096, allocations: 0 / 441.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.48e-05/0.2097, allocations: 0 / 441.5 MB, free: 12.1 MB / 314.7 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.004471/0.2142, allocations: 2.778 MB / 444.3 MB, free: 9.254 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.2142, allocations: 12.03 kB / 444.3 MB, free: 9.242 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009304/0.2151, allocations: 361.2 kB / 444.7 MB, free: 8.887 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002439/0.2176, allocations: 1.709 MB / 446.4 MB, free: 7.121 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001586/0.2178, allocations: 188.9 kB / 446.6 MB, free: 6.934 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003143/0.2181, allocations: 231.9 kB / 446.8 MB, free: 6.707 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004725/0.2228, allocations: 3.129 MB / 449.9 MB, free: 3.488 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.804e-05/0.2229, allocations: 7.938 kB / 449.9 MB, free: 3.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002065/0.2231, allocations: 100 kB / 450 MB, free: 3.383 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000102/0.2232, allocations: 108.6 kB / 450.1 MB, free: 3.273 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004216/0.2274, allocations: 2.7 MB / 452.8 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01309/0.2405, allocations: 9.79 MB / 462.6 MB, free: 6.469 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002516/0.2431, allocations: 2.185 MB / 464.8 MB, free: 4.113 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001764/0.2448, allocations: 1.124 MB / 465.9 MB, free: 2.992 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002631/0.2451, allocations: 211.2 kB / 466.1 MB, free: 2.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.2452, allocations: 43.56 kB / 466.2 MB, free: 2.699 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 3.717e-06/0.2452, allocations: 0 / 466.2 MB, free: 2.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=131): time 0.01291/0.2581, allocations: 6.95 MB / 473.1 MB, free: 11.58 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.2582, allocations: 68.72 kB / 473.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002177/0.2603, allocations: 1.731 MB / 474.9 MB, free: 9.766 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.478e-05/0.2604, allocations: 49.7 kB / 475 MB, free: 9.711 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007789/0.2612, allocations: 1.148 MB / 476.1 MB, free: 8.547 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003309/0.2616, allocations: 469.3 kB / 476.6 MB, free: 8.082 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.772e-05/0.2616, allocations: 28 kB / 476.6 MB, free: 8.055 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.2618, allocations: 365.9 kB / 477 MB, free: 7.691 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.263, allocations: 0.8042 MB / 477.8 MB, free: 6.887 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.2645, allocations: 1.209 MB / 479 MB, free: 5.504 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002757/0.2673, allocations: 2.113 MB / 481.1 MB, free: 3.223 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.2673, allocations: 8 kB / 481.1 MB, free: 3.215 MB / 346.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004068/0.2714, allocations: 2.682 MB / 483.8 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.2714, allocations: 8 kB / 483.8 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.2714, allocations: 15.98 kB / 483.8 MB, free: 480 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009304/0.2724, allocations: 427.5 kB / 484.2 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.2737, allocations: 371.4 kB / 484.6 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006132/0.2798, allocations: 6.475 MB / 491.1 MB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.2809, allocations: 111.9 kB / 491.2 MB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.281, allocations: 67.98 kB / 491.2 MB, free: 8.621 MB / 362.7 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 (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.001154/0.2822, allocations: 0.79 MB / 492 MB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002599/0.2824, allocations: 197.5 kB / 492.2 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003729/0.2862, allocations: 2.399 MB / 494.6 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.2862, allocations: 12 kB / 494.6 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.2862, allocations: 4 kB / 494.6 MB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.2862, allocations: 7.969 kB / 494.6 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007711/0.2939, allocations: 5.151 MB / 499.8 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.294, allocations: 4 kB / 499.8 MB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009602/0.2949, allocations: 240.1 kB / 0.4883 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001068/0.296, allocations: 455.1 kB / 0.4887 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.471e-05/0.2961, allocations: 35.98 kB / 0.4888 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007167/0.3033, allocations: 7.937 MB / 0.4965 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.3033, allocations: 7.938 kB / 0.4965 GB, free: 6.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005142/0.3085, allocations: 3.535 MB / 0.5 GB, free: 3.039 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007455/0.3092, allocations: 442.6 kB / 0.5004 GB, free: 2.586 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002371/0.3095, allocations: 35.98 kB / 0.5004 GB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000873/0.3104, allocations: 99.84 kB / 0.5005 GB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002679/0.3106, allocations: 112.9 kB / 0.5007 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.31e-05/0.3107, allocations: 43.98 kB / 0.5007 GB, free: 2.297 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00163/0.3124, allocations: 1.187 MB / 0.5019 GB, free: 1.117 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.653e-06/0.3124, allocations: 0 / 0.5019 GB, free: 1.117 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001474/0.3139, allocations: 0.5155 MB / 0.5024 GB, free: 0.6016 MB / 378.7 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.000335/0.3142, allocations: 202.9 kB / 0.5025 GB, free: 404 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1517/0.4659, allocations: 2.468 MB / 0.505 GB, free: 90.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.4659, allocations: 0 / 0.505 GB, free: 90.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002267/0.4682, allocations: 1.612 MB / 0.5065 GB, free: 90.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002839/0.4711, allocations: 447.5 kB / 0.507 GB, free: 90.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007166/0.4782, allocations: 6.18 MB / 0.513 GB, free: 86.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/0.4796, allocations: 2.006 MB / 0.515 GB, free: 85.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00141/0.481, allocations: 441.1 kB / 0.5154 GB, free: 85.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003368/0.4813, allocations: 128.1 kB / 0.5155 GB, free: 85.5 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4813, allocations: 0 / 0.5155 GB, free: 85.5 MB / 378.7 MB Notification: Performance of Templates: time 0.03438/0.5157, allocations: 26.26 MB / 0.5411 GB, free: 61.85 MB / 378.7 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","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches