Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.00127, allocations: 118 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.5 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002537/0.002537, allocations: 64.2 kB / 306.5 MB, free: 0.8945 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09314/0.09569, allocations: 50.54 MB / 357 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1814/0.2772, allocations: 24.42 MB / 381.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01299/0.2902, allocations: 7.284 MB / 388.7 MB, free: 4.035 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004825/0.2951, allocations: 141 kB / 388.9 MB, free: 4.004 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004414/0.2995, allocations: 1.363 MB / 390.2 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007034/0.3066, allocations: 2.03 MB / 392.3 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003458/0.31, allocations: 1.352 MB / 393.6 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01143/0.3215, allocations: 7.422 MB / 401.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007485/0.329, allocations: 5.554 MB / 406.6 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005852/0.3349, allocations: 3.114 MB / 409.7 MB, free: 7.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006808/0.3417, allocations: 3.845 MB / 413.6 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001356/0.3431, allocations: 0.8672 MB / 414.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002834/0.3459, allocations: 1.304 MB / 415.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002029/0.348, allocations: 2.127 MB / 417.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004589/0.3526, allocations: 3.792 MB / 421.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0131/0.3657, allocations: 11.39 MB / 433 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3657, allocations: 0 / 433 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3658, allocations: 0 / 433 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002244/0.366, allocations: 0 / 433 MB, free: 0.5508 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01828/0.3843, allocations: 7.443 MB / 440.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.3843, allocations: 12.03 kB / 440.5 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00618/0.3905, allocations: 1.234 MB / 441.7 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007207/0.3977, allocations: 3.865 MB / 445.6 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003911/0.3982, allocations: 444.2 kB / 446 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008539/0.399, allocations: 0.5583 MB / 446.6 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01317/0.4122, allocations: 7.311 MB / 453.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001174/0.4123, allocations: 7.906 kB / 453.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005552/0.4129, allocations: 228 kB / 454.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002909/0.4132, allocations: 263.3 kB / 454.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01138/0.4246, allocations: 6.162 MB / 460.6 MB, free: 4.816 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0393/0.4639, allocations: 23.88 MB / 484.4 MB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01032/0.4743, allocations: 9.023 MB / 493.5 MB, free: 2.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00441/0.4787, allocations: 2.477 MB / 495.9 MB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0139/0.4926, allocations: 7.632 MB / 0.4918 GB, free: 7.785 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.848e-05/0.4927, allocations: 64.56 kB / 0.4918 GB, free: 7.715 MB / 414.1 MB Notification: Performance of pre-optimization done (n=238): time 4.699e-06/0.4928, allocations: 0 / 0.4918 GB, free: 7.715 MB / 414.1 MB Notification: Performance of matching and sorting (n=282): time 0.03599/0.5287, allocations: 14.06 MB / 0.5056 GB, free: 9.441 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.886e-05/0.5289, allocations: 81.59 kB / 0.5056 GB, free: 9.348 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005648/0.5345, allocations: 3.512 MB / 0.5091 GB, free: 5.852 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002479/0.5348, allocations: 73.7 kB / 0.5091 GB, free: 5.773 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002272/0.5371, allocations: 2.69 MB / 0.5118 GB, free: 3.051 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009668/0.538, allocations: 0.9628 MB / 0.5127 GB, free: 2.074 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001096/0.5391, allocations: 0.645 MB / 0.5133 GB, free: 1.422 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.5393, allocations: 301.1 kB / 0.5136 GB, free: 1.125 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002882/0.5422, allocations: 1.557 MB / 0.5151 GB, free: 15.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003981/0.5462, allocations: 2.77 MB / 0.5178 GB, free: 12.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007219/0.5534, allocations: 4.637 MB / 0.5224 GB, free: 7.055 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.062e-05/0.5534, allocations: 15.94 kB / 0.5224 GB, free: 7.039 MB / 446.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01051/0.564, allocations: 5.545 MB / 0.5278 GB, free: 1.387 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.311e-05/0.564, allocations: 24 kB / 0.5278 GB, free: 1.363 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.152e-05/0.5641, allocations: 36 kB / 0.5279 GB, free: 1.328 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00189/0.566, allocations: 0.7033 MB / 0.5285 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.174/0.7399, allocations: 0.8514 MB / 0.5294 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009077/0.749, allocations: 10.64 MB / 0.5398 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003494/0.7526, allocations: 222.9 kB / 0.54 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002728/0.7528, allocations: 173.8 kB / 0.5401 GB, free: 130.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (426): * Single equations (assignments): 416 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 4 systems {(3,12,100.0%), (1,6,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002555/0.7554, allocations: 1.628 MB / 0.5417 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000658/0.7561, allocations: 387 kB / 0.5421 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00769/0.7638, allocations: 4.57 MB / 0.5466 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.201e-05/0.7638, allocations: 32.67 kB / 0.5466 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.544e-05/0.7638, allocations: 7.406 kB / 0.5466 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.244e-05/0.7639, allocations: 15.56 kB / 0.5466 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01394/0.7778, allocations: 10.08 MB / 0.5565 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.7779, allocations: 3.938 kB / 0.5565 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002009/0.7799, allocations: 0.4945 MB / 0.5569 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00173/0.7816, allocations: 0.7749 MB / 0.5577 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001705/0.7818, allocations: 71.03 kB / 0.5578 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0102/0.792, allocations: 14.43 MB / 0.5719 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.792, allocations: 4.906 kB / 0.5719 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008739/0.8008, allocations: 6.7 MB / 0.5784 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001354/0.8022, allocations: 0.7847 MB / 0.5792 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004899/0.8027, allocations: 58.59 kB / 0.5792 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001873/0.8045, allocations: 165.9 kB / 0.5794 GB, free: 107.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004197/0.805, allocations: 212.9 kB / 0.5796 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/0.8051, allocations: 85.88 kB / 0.5797 GB, free: 107.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002954/0.8081, allocations: 2.374 MB / 0.582 GB, free: 105.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8081, allocations: 0 / 0.582 GB, free: 105.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003364/0.8115, allocations: 1.119 MB / 0.5831 GB, free: 104.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (235): * Single equations (assignments): 225 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,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.0005598/0.812, allocations: 304.6 kB / 0.5834 GB, free: 104.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01216/0.8242, allocations: 6.714 MB / 0.5899 GB, free: 97.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.8242, allocations: 448 / 0.5899 GB, free: 97.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003616/0.8279, allocations: 2.871 MB / 0.5927 GB, free: 94.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003629/0.8315, allocations: 0.9262 MB / 0.5936 GB, free: 93.83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/0.8456, allocations: 12.99 MB / 0.6063 GB, free: 80.78 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002364/0.848, allocations: 3.507 MB / 0.6098 GB, free: 77.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002811/0.8508, allocations: 0.8523 MB / 0.6106 GB, free: 76.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006959/0.8515, allocations: 267.4 kB / 0.6108 GB, free: 76.11 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.8515, allocations: 0 / 0.6108 GB, free: 76.11 MB / 446.1 MB Notification: Performance of Templates: time 0.07672/0.9283, allocations: 54.64 MB / 0.6642 GB, free: 21.96 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches