Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.FundamentalWave.Examples.BasicMachines.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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001351, allocations: 111.9 kB / 18.4 MB, free: 4.566 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.001414/0.001414, allocations: 190.3 kB / 19.33 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 48.41 kB / 329.2 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09966/0.1011, allocations: 46.62 MB / 375.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.2567/0.3578, allocations: 24.05 MB / 399.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01892/0.3768, allocations: 7.123 MB / 407 MB, free: 8.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006672/0.3836, allocations: 130 kB / 407.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006684/0.3903, allocations: 1.58 MB / 408.7 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01152/0.4018, allocations: 2.273 MB / 411 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005959/0.4078, allocations: 1.458 MB / 412.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0137/0.4216, allocations: 7.203 MB / 419.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01426/0.4359, allocations: 5.478 MB / 425.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008088/0.444, allocations: 3.201 MB / 428.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008209/0.4523, allocations: 3.829 MB / 432.2 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003752/0.4561, allocations: 0.8789 MB / 433.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005926/0.462, allocations: 1.296 MB / 434.3 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004317/0.4664, allocations: 2.119 MB / 436.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01023/0.4767, allocations: 3.777 MB / 440.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02121/0.4979, allocations: 11.46 MB / 451.7 MB, free: 3.555 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.366e-05/0.498, allocations: 4 kB / 451.7 MB, free: 3.551 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.498, allocations: 0 / 451.7 MB, free: 3.551 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005425/0.4986, allocations: 0 / 451.7 MB, free: 3.551 MB / 366.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.0263/0.5249, allocations: 7.42 MB / 459.1 MB, free: 12.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.742e-05/0.525, allocations: 8.031 kB / 459.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008085/0.533, allocations: 1.219 MB / 460.4 MB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0129/0.546, allocations: 3.927 MB / 464.3 MB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006669/0.5467, allocations: 419.8 kB / 464.7 MB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002225/0.549, allocations: 0.5588 MB / 465.2 MB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02201/0.571, allocations: 7.28 MB / 472.5 MB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003277/0.5714, allocations: 15.98 kB / 472.5 MB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001964/0.5734, allocations: 232 kB / 472.8 MB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003993/0.5738, allocations: 263.2 kB / 473 MB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01659/0.5904, allocations: 6.107 MB / 479.1 MB, free: 7.895 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05315/0.6436, allocations: 23.39 MB / 0.4907 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01064/0.6543, allocations: 8.736 MB / 0.4993 GB, free: 6.188 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005085/0.6594, allocations: 2.363 MB / 0.5016 GB, free: 3.82 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01706/0.6765, allocations: 6.918 MB / 0.5083 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.501e-05/0.6767, allocations: 60.56 kB / 0.5084 GB, free: 12.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=238): time 6.662e-06/0.6767, allocations: 0 / 0.5084 GB, free: 12.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=282): time 0.03917/0.7159, allocations: 13.73 MB / 0.5218 GB, free: 14.65 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.716, allocations: 81.59 kB / 0.5219 GB, free: 14.56 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007073/0.723, allocations: 3.436 MB / 0.5252 GB, free: 11.14 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005857/0.7237, allocations: 69.7 kB / 0.5253 GB, free: 11.06 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002579/0.7263, allocations: 2.674 MB / 0.5279 GB, free: 8.359 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001383/0.7277, allocations: 0.9627 MB / 0.5289 GB, free: 7.383 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001856/0.7295, allocations: 0.641 MB / 0.5295 GB, free: 6.734 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.7297, allocations: 305.1 kB / 0.5298 GB, free: 6.434 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003138/0.7328, allocations: 1.549 MB / 0.5313 GB, free: 4.883 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003997/0.7368, allocations: 2.76 MB / 0.534 GB, free: 1.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007447/0.7443, allocations: 4.606 MB / 0.5385 GB, free: 12.41 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.286e-05/0.7444, allocations: 8 kB / 0.5385 GB, free: 12.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01144/0.7558, allocations: 5.468 MB / 0.5438 GB, free: 6.832 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.034e-05/0.7559, allocations: 28.03 kB / 0.5439 GB, free: 6.805 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.26e-05/0.756, allocations: 36 kB / 0.5439 GB, free: 6.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001775/0.7578, allocations: 0.6697 MB / 0.5445 GB, free: 6.082 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00352/0.7613, allocations: 0.8619 MB / 0.5454 GB, free: 5.219 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2397/1.001, allocations: 10.34 MB / 0.5555 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004063/1.005, allocations: 232.7 kB / 0.5557 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007364/1.006, allocations: 169.4 kB / 0.5559 GB, free: 141.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (430): * Single equations (assignments): 420 * 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,3,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.004156/1.01, allocations: 1.619 MB / 0.5575 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001275/1.011, allocations: 387.5 kB / 0.5578 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008787/1.02, allocations: 4.506 MB / 0.5622 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.842e-05/1.02, allocations: 31.02 kB / 0.5623 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.619e-05/1.02, allocations: 12.62 kB / 0.5623 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-05/1.02, allocations: 13.31 kB / 0.5623 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01999/1.04, allocations: 9.899 MB / 0.5719 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/1.04, allocations: 8.281 kB / 0.572 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/1.043, allocations: 0.5009 MB / 0.5724 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001826/1.044, allocations: 0.7284 MB / 0.5732 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002215/1.045, allocations: 78.55 kB / 0.5732 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01129/1.056, allocations: 14.1 MB / 0.587 GB, free: 123.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.894e-06/1.056, allocations: 9.438 kB / 0.587 GB, free: 123.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/1.066, allocations: 6.604 MB / 0.5935 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002037/1.068, allocations: 0.77 MB / 0.5942 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006665/1.069, allocations: 60.19 kB / 0.5943 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001953/1.071, allocations: 171.5 kB / 0.5944 GB, free: 119.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00046/1.071, allocations: 206.9 kB / 0.5946 GB, free: 119.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/1.072, allocations: 89.11 kB / 0.5947 GB, free: 119.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003312/1.075, allocations: 2.306 MB / 0.597 GB, free: 118.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.41e-07/1.075, allocations: 0 / 0.597 GB, free: 118.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00535/1.08, allocations: 1.09 MB / 0.598 GB, free: 118.7 MB / 478.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.strayReluctance.Phi.re,smeeM.stator.strayReluctance.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 (238): * Single equations (assignments): 228 * 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,3,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.0008336/1.081, allocations: 284.2 kB / 0.5983 GB, free: 118.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006724/1.088, allocations: 4.685 MB / 0.6029 GB, free: 115.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/1.088, allocations: 4.125 kB / 0.6029 GB, free: 115.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00394/1.092, allocations: 2.826 MB / 0.6056 GB, free: 112.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004748/1.097, allocations: 0.9122 MB / 0.6065 GB, free: 111.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01602/1.113, allocations: 10.44 MB / 0.6167 GB, free: 101.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0025/1.115, allocations: 3.424 MB / 0.6201 GB, free: 97.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001332/1.116, allocations: 287.4 kB / 0.6203 GB, free: 97.48 MB / 478.1 MB Notification: Performance of SimCode: time 8.22e-07/1.117, allocations: 4 kB / 0.6203 GB, free: 97.47 MB / 478.1 MB Notification: Performance of Templates: time 0.4244/1.541, allocations: 239.8 MB / 0.8546 GB, free: 81.31 MB / 0.4981 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches