Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.1.|smee.is.2.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.1.|smee.is.2.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001046/0.001046, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001104/0.001104, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 59.22 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1171, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.2373/0.3545, allocations: 17.27 MB / 376.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.3662, allocations: 5.699 MB / 381.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003747/0.37, allocations: 104.8 kB / 382 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004443/0.3744, allocations: 1.27 MB / 383.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007446/0.382, allocations: 1.585 MB / 384.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003289/0.3853, allocations: 1.104 MB / 386 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008636/0.394, allocations: 5.225 MB / 391.2 MB, free: 4.957 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005472/0.3995, allocations: 4.312 MB / 395.5 MB, free: 3.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003772/0.4033, allocations: 2.182 MB / 397.7 MB, free: 1.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004072/0.4074, allocations: 2.632 MB / 400.3 MB, free: 460 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001201/0.4086, allocations: 0.6131 MB / 400.9 MB, free: 460 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002428/0.411, allocations: 0.8592 MB / 401.8 MB, free: 332 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001374/0.4124, allocations: 1.429 MB / 403.2 MB, free: 15.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004393/0.4168, allocations: 2.643 MB / 405.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008846/0.4257, allocations: 8.128 MB / 414 MB, free: 4.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.4257, allocations: 4 kB / 414 MB, free: 4.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4257, allocations: 0 / 414 MB, free: 4.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002123/0.426, allocations: 0 / 414 MB, free: 4.754 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01352/0.4395, allocations: 5.405 MB / 419.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.4395, allocations: 12.03 kB / 419.4 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005418/0.445, allocations: 1.018 MB / 420.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006969/0.452, allocations: 3.003 MB / 423.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002438/0.4522, allocations: 300.5 kB / 423.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008227/0.4531, allocations: 411.8 kB / 424.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009173/0.4622, allocations: 5.213 MB / 429.3 MB, free: 5.176 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.193e-05/0.4624, allocations: 8 kB / 429.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003637/0.4627, allocations: 160 kB / 429.5 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001633/0.4629, allocations: 172 kB / 429.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008509/0.4714, allocations: 4.462 MB / 434.1 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0295/0.501, allocations: 16.68 MB / 450.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007381/0.5084, allocations: 8.694 MB / 459.5 MB, free: 5.406 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003581/0.512, allocations: 1.987 MB / 461.5 MB, free: 3.422 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008529/0.5206, allocations: 5.757 MB / 467.2 MB, free: 13.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.5206, allocations: 51.88 kB / 467.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=157): time 5.25e-06/0.5206, allocations: 0 / 467.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=160): time 0.01272/0.5334, allocations: 6.299 MB / 473.6 MB, free: 6.812 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.5334, allocations: 68.72 kB / 473.7 MB, free: 6.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00347/0.5369, allocations: 2.323 MB / 476 MB, free: 4.387 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.5371, allocations: 53.7 kB / 476 MB, free: 4.328 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/0.5384, allocations: 1.86 MB / 477.9 MB, free: 2.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005116/0.5389, allocations: 0.5468 MB / 478.4 MB, free: 1.887 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006239/0.5395, allocations: 399.6 kB / 478.8 MB, free: 1.488 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.5397, allocations: 301.1 kB / 479.1 MB, free: 1.191 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001485/0.5411, allocations: 0.8553 MB / 480 MB, free: 340 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/0.5433, allocations: 1.571 MB / 481.5 MB, free: 14.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003444/0.5467, allocations: 2.582 MB / 484.1 MB, free: 11.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/0.5468, allocations: 8 kB / 484.1 MB, free: 11.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004881/0.5517, allocations: 2.966 MB / 487.1 MB, free: 8.527 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/0.5517, allocations: 16 kB / 487.1 MB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.87e-05/0.5517, allocations: 20 kB / 487.1 MB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004271/0.5522, allocations: 181.7 kB / 487.3 MB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001912/0.5541, allocations: 0.5266 MB / 487.8 MB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002331/0.5564, allocations: 2.433 MB / 490.3 MB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.5581, allocations: 115.8 kB / 490.4 MB, free: 5.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/0.5583, allocations: 99.98 kB / 490.5 MB, free: 4.988 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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 (266): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001874/0.5601, allocations: 1.196 MB / 491.7 MB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003703/0.5605, allocations: 245 kB / 491.9 MB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00408/0.5646, allocations: 2.531 MB / 494.5 MB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.5646, allocations: 19.98 kB / 494.5 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.5647, allocations: 7.938 kB / 494.5 MB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.5647, allocations: 15.97 kB / 494.5 MB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008842/0.5735, allocations: 5.893 MB / 0.4887 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.5736, allocations: 4 kB / 0.4887 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.5748, allocations: 287.8 kB / 0.4889 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008618/0.5756, allocations: 357.1 kB / 0.4893 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.5758, allocations: 43.92 kB / 0.4893 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006834/0.5826, allocations: 7.382 MB / 0.4965 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5826, allocations: 0 / 0.4965 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00541/0.588, allocations: 3.652 MB / 0.5001 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.5891, allocations: 0.5018 MB / 0.5006 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002765/0.5894, allocations: 28 kB / 0.5006 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.5905, allocations: 87.92 kB / 0.5007 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002657/0.5908, allocations: 125.1 kB / 0.5008 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.534e-05/0.5909, allocations: 43.98 kB / 0.5009 GB, free: 13.86 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002261/0.5931, allocations: 1.569 MB / 0.5024 GB, free: 12.28 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5931, allocations: 3.938 kB / 0.5024 GB, free: 12.28 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00212/0.5953, allocations: 0.6757 MB / 0.5031 GB, free: 11.6 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.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 (129): * Single equations (assignments): 126 * Array equations: 0 * 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 {(1,8,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003521/0.5956, allocations: 181.9 kB / 0.5032 GB, free: 11.42 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003645/0.5993, allocations: 2.312 MB / 0.5055 GB, free: 9.074 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5993, allocations: 4 kB / 0.5055 GB, free: 9.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002172/0.6015, allocations: 1.472 MB / 0.5069 GB, free: 7.559 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002476/0.604, allocations: 0.6059 MB / 0.5075 GB, free: 6.957 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.6153, allocations: 6.938 MB / 0.5143 GB, free: 15.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002585/0.6179, allocations: 2.67 MB / 0.5169 GB, free: 13.29 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00206/0.62, allocations: 0.5513 MB / 0.5174 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004778/0.6205, allocations: 167.4 kB / 0.5176 GB, free: 12.57 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.6205, allocations: 0 / 0.5176 GB, free: 12.57 MB / 446.1 MB Notification: Performance of Templates: time 0.221/0.8415, allocations: 30.61 MB / 0.5475 GB, free: 137 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches