Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 115.7 kB / 17.74 MB, free: 5.297 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.001228/0.001228, allocations: 189.6 kB / 18.67 MB, free: 4.375 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.302/1.302, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 47.94 kB / 352 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2347, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01098/0.2457, allocations: 10.19 MB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005689/0.2514, allocations: 3.209 MB / 414.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001202/0.2526, allocations: 59.75 kB / 414.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001857/0.2545, allocations: 0.6945 MB / 415.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002747/0.2573, allocations: 0.8425 MB / 416.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.2584, allocations: 411.4 kB / 416.8 MB, free: 9.414 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003632/0.2621, allocations: 2.968 MB / 419.8 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003078/0.2651, allocations: 2.48 MB / 422.3 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001826/0.267, allocations: 1.355 MB / 423.6 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00244/0.2694, allocations: 1.689 MB / 425.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000711/0.2702, allocations: 356 kB / 425.7 MB, free: 496 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001112/0.2713, allocations: 451.8 kB / 426.1 MB, free: 44 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001126/0.2724, allocations: 1.017 MB / 427.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002145/0.2746, allocations: 1.61 MB / 428.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00421/0.2788, allocations: 4.669 MB / 433.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2788, allocations: 0 / 433.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2788, allocations: 0 / 433.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.127e-05/0.2789, allocations: 4 kB / 433.4 MB, free: 8.719 MB / 350.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.005703/0.2846, allocations: 3.257 MB / 436.7 MB, free: 5.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.2846, allocations: 11.97 kB / 436.7 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007086/0.2854, allocations: 333.2 kB / 437 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002508/0.2879, allocations: 1.752 MB / 438.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.288, allocations: 180.8 kB / 438.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003308/0.2884, allocations: 239.9 kB / 439.2 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004754/0.2931, allocations: 3.133 MB / 442.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.232e-05/0.2932, allocations: 7.906 kB / 442.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002248/0.2934, allocations: 96 kB / 442.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/0.2935, allocations: 112.5 kB / 442.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004278/0.2978, allocations: 2.688 MB / 445.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01367/0.3115, allocations: 9.626 MB / 454.8 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002668/0.3142, allocations: 2.178 MB / 457 MB, free: 440 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001886/0.3161, allocations: 1.112 MB / 458.1 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002794/0.3164, allocations: 203.2 kB / 458.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.3164, allocations: 51.56 kB / 458.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.095e-06/0.3165, allocations: 0 / 458.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01392/0.3304, allocations: 6.831 MB / 465.2 MB, free: 8.027 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.3305, allocations: 64.72 kB / 465.2 MB, free: 7.953 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/0.3329, allocations: 1.739 MB / 467 MB, free: 6.211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001095/0.3331, allocations: 53.7 kB / 467 MB, free: 6.152 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008084/0.3339, allocations: 1.152 MB / 468.2 MB, free: 4.984 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003577/0.3342, allocations: 461.3 kB / 468.6 MB, free: 4.527 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004507/0.3347, allocations: 279.4 kB / 468.9 MB, free: 4.246 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.339e-05/0.3348, allocations: 309.1 kB / 469.2 MB, free: 3.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.3361, allocations: 0.7886 MB / 470 MB, free: 3.152 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.3377, allocations: 1.205 MB / 471.2 MB, free: 1.773 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002869/0.3406, allocations: 2.098 MB / 473.3 MB, free: 15.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.3406, allocations: 4 kB / 473.3 MB, free: 15.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005303/0.3459, allocations: 2.682 MB / 476 MB, free: 12.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/0.346, allocations: 12 kB / 476 MB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.911e-05/0.346, allocations: 12.34 kB / 476 MB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001259/0.3473, allocations: 415.1 kB / 476.4 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.3486, allocations: 367.4 kB / 476.8 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007047/0.3557, allocations: 7.079 MB / 483.9 MB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.3571, allocations: 111.8 kB / 484 MB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.3573, allocations: 63.98 kB / 484 MB, free: 4.316 MB / 398.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.001407/0.3587, allocations: 0.7861 MB / 484.8 MB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004103/0.3591, allocations: 185.8 kB / 485 MB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004062/0.3632, allocations: 2.375 MB / 487.4 MB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.3632, allocations: 15.94 kB / 487.4 MB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.3632, allocations: 4 kB / 487.4 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.3632, allocations: 11.97 kB / 487.4 MB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00798/0.3712, allocations: 5.104 MB / 492.5 MB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.986e-05/0.3713, allocations: 4 kB / 492.5 MB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.3723, allocations: 231.6 kB / 492.7 MB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.3734, allocations: 459.2 kB / 493.2 MB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.823e-05/0.3735, allocations: 35.98 kB / 493.2 MB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008099/0.3816, allocations: 8.641 MB / 0.4901 GB, free: 1.707 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.3816, allocations: 4.047 kB / 0.4901 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005695/0.3873, allocations: 3.525 MB / 0.4935 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008775/0.3882, allocations: 434.8 kB / 0.494 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003414/0.3886, allocations: 31.98 kB / 0.494 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.3896, allocations: 79.91 kB / 0.4941 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002782/0.3899, allocations: 124.7 kB / 0.4942 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.729e-05/0.39, allocations: 39.98 kB / 0.4942 GB, free: 13.38 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00195/0.392, allocations: 1.198 MB / 0.4954 GB, free: 12.18 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.392, allocations: 0 / 0.4954 GB, free: 12.18 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001701/0.3937, allocations: 0.5038 MB / 0.4959 GB, free: 11.68 MB / 430.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.0004078/0.3941, allocations: 203 kB / 0.4961 GB, free: 11.47 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003994/0.3981, allocations: 2.472 MB / 0.4985 GB, free: 8.934 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.3981, allocations: 0 / 0.4985 GB, free: 8.934 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00247/0.4006, allocations: 1.611 MB / 0.5001 GB, free: 7.277 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002015/0.4026, allocations: 473.8 kB / 0.5005 GB, free: 6.816 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00773/0.4104, allocations: 5.032 MB / 0.5054 GB, free: 1.711 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001698/0.4121, allocations: 1.965 MB / 0.5074 GB, free: 15.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005127/0.4126, allocations: 139.4 kB / 0.5075 GB, free: 15.58 MB / 446.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4126, allocations: 0 / 0.5075 GB, free: 15.58 MB / 446.1 MB Notification: Performance of Templates: time 0.2637/0.6763, allocations: 79.42 MB / 0.585 GB, free: 93.49 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches