Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001018/0.001018, allocations: 96.02 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001383/0.001383, allocations: 205.5 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002389/0.0002389, allocations: 4.281 kB / 307.7 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1206, allocations: 51.53 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01372/0.1343, allocations: 11.15 MB / 370.4 MB, free: 2.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2078/0.3422, allocations: 3.911 MB / 374.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002884/0.3451, allocations: 60.03 kB / 374.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003232/0.3483, allocations: 0.7541 MB / 375.2 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004589/0.353, allocations: 0.8899 MB / 376 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001855/0.3548, allocations: 476.2 kB / 376.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005576/0.3604, allocations: 3.864 MB / 380.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0037/0.3642, allocations: 2.259 MB / 382.6 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00273/0.3669, allocations: 1.168 MB / 383.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003157/0.3701, allocations: 1.653 MB / 385.5 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005783/0.3707, allocations: 171.8 kB / 385.6 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001469/0.3722, allocations: 415.5 kB / 386 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001004/0.3732, allocations: 0.8714 MB / 386.9 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002027/0.3752, allocations: 1.559 MB / 388.5 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005126/0.3803, allocations: 5.038 MB / 393.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.3804, allocations: 1.875 kB / 393.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3804, allocations: 0 / 393.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001244/0.3805, allocations: 1.375 kB / 393.5 MB, free: 2.5 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.007066/0.3876, allocations: 3.165 MB / 396.7 MB, free: 408 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.3876, allocations: 9.594 kB / 396.7 MB, free: 408 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001788/0.3894, allocations: 483.8 kB / 397.1 MB, free: 184 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003367/0.3928, allocations: 1.931 MB / 399.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/0.393, allocations: 209.3 kB / 399.3 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003824/0.3934, allocations: 273.3 kB / 399.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006189/0.3996, allocations: 3.539 MB / 403.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.523e-05/0.3997, allocations: 3.984 kB / 403.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000256/0.3999, allocations: 108 kB / 403.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001481/0.4001, allocations: 125.2 kB / 403.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005367/0.4055, allocations: 3.003 MB / 406.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0187/0.4242, allocations: 11.16 MB / 417.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002888/0.4271, allocations: 2.305 MB / 419.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002035/0.4292, allocations: 1.203 MB / 421 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002913/0.4295, allocations: 211.2 kB / 421.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.4295, allocations: 43.88 kB / 421.2 MB, free: 9.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.186e-06/0.4295, allocations: 0 / 421.2 MB, free: 9.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=148): time 0.01728/0.4468, allocations: 7.679 MB / 428.9 MB, free: 1.719 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.068e-05/0.4469, allocations: 72.72 kB / 429 MB, free: 1.633 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003411/0.4504, allocations: 1.992 MB / 431 MB, free: 15.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000152/0.4505, allocations: 52.75 kB / 431 MB, free: 15.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009792/0.4515, allocations: 1.313 MB / 432.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004962/0.452, allocations: 0.5047 MB / 432.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002396/0.4523, allocations: 153.6 kB / 433 MB, free: 13.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.4524, allocations: 301.1 kB / 433.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001614/0.4541, allocations: 0.9018 MB / 434.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001964/0.456, allocations: 1.386 MB / 435.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00351/0.4596, allocations: 2.418 MB / 438 MB, free: 8.152 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.898e-06/0.4596, allocations: 4 kB / 438 MB, free: 8.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005535/0.4651, allocations: 3.016 MB / 441 MB, free: 5.098 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.4652, allocations: 15.94 kB / 441 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.638e-05/0.4652, allocations: 16 kB / 441.1 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.4663, allocations: 468.6 kB / 441.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/0.468, allocations: 435.3 kB / 441.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00629/0.4743, allocations: 5.59 MB / 447.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002382/0.4767, allocations: 127.8 kB / 447.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001759/0.4769, allocations: 79.98 kB / 447.7 MB, free: 14.13 MB / 366.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.001907/0.4788, allocations: 0.8601 MB / 448.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005572/0.4794, allocations: 209.5 kB / 448.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004578/0.4839, allocations: 2.629 MB / 451.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.69e-05/0.484, allocations: 19.98 kB / 451.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.484, allocations: 4 kB / 451.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.484, allocations: 7.984 kB / 451.5 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01064/0.4947, allocations: 5.683 MB / 457.1 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.4947, allocations: 0 / 457.1 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.496, allocations: 295.8 kB / 457.4 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001368/0.4973, allocations: 0.4904 MB / 457.9 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.4975, allocations: 43.97 kB / 458 MB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008033/0.5055, allocations: 7.057 MB / 465 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/0.5055, allocations: 7.938 kB / 465 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006667/0.5122, allocations: 3.876 MB / 468.9 MB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001238/0.5135, allocations: 486.4 kB / 469.4 MB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003015/0.5138, allocations: 39.92 kB / 469.4 MB, free: 7.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.515, allocations: 107.9 kB / 469.5 MB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003178/0.5153, allocations: 125 kB / 469.6 MB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.5154, allocations: 47.92 kB / 469.7 MB, free: 7.496 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002152/0.5176, allocations: 1.368 MB / 471.1 MB, free: 6.105 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5176, allocations: 0 / 471.1 MB, free: 6.105 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002084/0.5197, allocations: 0.5852 MB / 471.6 MB, free: 5.523 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.0004819/0.5202, allocations: 222.8 kB / 471.9 MB, free: 5.297 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004532/0.5247, allocations: 2.631 MB / 474.5 MB, free: 2.621 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5248, allocations: 4.188 kB / 474.5 MB, free: 2.617 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002705/0.5275, allocations: 1.623 MB / 476.1 MB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/0.5308, allocations: 472.9 kB / 476.6 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009793/0.5406, allocations: 6.989 MB / 483.6 MB, free: 9.445 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001902/0.5426, allocations: 2.144 MB / 485.7 MB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00161/0.5442, allocations: 472.9 kB / 486.2 MB, free: 6.805 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004436/0.5446, allocations: 139.4 kB / 486.3 MB, free: 6.668 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5447, allocations: 0 / 486.3 MB, free: 6.668 MB / 398.1 MB Notification: Performance of Templates: time 0.05186/0.5965, allocations: 29.21 MB / 0.5034 GB, free: 9.719 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches