Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_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.001275/0.001275, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001622/0.001622, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.485/1.485, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001879, allocations: 64.52 kB / 307.9 MB, free: 484 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09868/0.1006, allocations: 50.54 MB / 358.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.1777/0.2783, allocations: 17.27 MB / 375.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01026/0.2886, allocations: 5.702 MB / 381.4 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003351/0.292, allocations: 106.1 kB / 381.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003907/0.296, allocations: 1.273 MB / 382.8 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005571/0.3016, allocations: 1.579 MB / 384.4 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002879/0.3045, allocations: 1.099 MB / 385.5 MB, free: 7.227 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007181/0.3117, allocations: 5.198 MB / 390.7 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005513/0.3172, allocations: 4.319 MB / 395 MB, free: 2.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003588/0.3208, allocations: 2.178 MB / 397.2 MB, free: 1.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00431/0.3252, allocations: 2.624 MB / 399.8 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001284/0.3265, allocations: 0.6171 MB / 400.4 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002631/0.3291, allocations: 0.8633 MB / 401.3 MB, free: 424 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001447/0.3306, allocations: 1.431 MB / 402.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004653/0.3352, allocations: 2.647 MB / 405.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009784/0.345, allocations: 8.074 MB / 413.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.3451, allocations: 0 / 413.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3451, allocations: 0 / 413.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002158/0.3453, allocations: 0 / 413.4 MB, free: 5.191 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.01505/0.3604, allocations: 5.413 MB / 418.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.3604, allocations: 12.03 kB / 418.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005476/0.3659, allocations: 1.022 MB / 419.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006508/0.3724, allocations: 2.917 MB / 422.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003028/0.3728, allocations: 312.4 kB / 423.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007897/0.3736, allocations: 395.9 kB / 423.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01017/0.3837, allocations: 5.221 MB / 428.7 MB, free: 5.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.783e-05/0.3838, allocations: 0 / 428.7 MB, free: 5.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003806/0.3842, allocations: 167.9 kB / 428.9 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001759/0.3844, allocations: 172 kB / 429 MB, free: 5.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008665/0.3931, allocations: 4.462 MB / 433.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03202/0.4251, allocations: 16.88 MB / 450.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009502/0.4347, allocations: 8.687 MB / 459.1 MB, free: 5.715 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004225/0.4389, allocations: 2.002 MB / 461.1 MB, free: 3.719 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01053/0.4495, allocations: 5.776 MB / 466.8 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.539e-05/0.4496, allocations: 51.88 kB / 466.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=157): time 3.788e-06/0.4496, allocations: 0 / 466.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=160): time 0.0137/0.4633, allocations: 6.291 MB / 473.2 MB, free: 7.098 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.4634, allocations: 72.66 kB / 473.2 MB, free: 7.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004807/0.4682, allocations: 2.315 MB / 475.6 MB, free: 4.676 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002199/0.4684, allocations: 49.7 kB / 475.6 MB, free: 4.621 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001834/0.4703, allocations: 1.86 MB / 477.5 MB, free: 2.734 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006682/0.4709, allocations: 0.5469 MB / 478 MB, free: 2.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008212/0.4718, allocations: 399.6 kB / 478.4 MB, free: 1.781 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.472, allocations: 305.1 kB / 478.7 MB, free: 1.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001688/0.4737, allocations: 0.8592 MB / 479.6 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002561/0.4762, allocations: 1.567 MB / 481.1 MB, free: 14.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004136/0.4804, allocations: 2.582 MB / 483.7 MB, free: 11.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-05/0.4804, allocations: 8 kB / 483.7 MB, free: 11.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.005669/0.4861, allocations: 2.963 MB / 486.7 MB, free: 8.824 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.4861, allocations: 16.06 kB / 486.7 MB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-05/0.4862, allocations: 27.94 kB / 486.7 MB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004617/0.4867, allocations: 181.5 kB / 486.9 MB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002036/0.4887, allocations: 0.5304 MB / 487.4 MB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002727/0.4914, allocations: 2.433 MB / 489.9 MB, free: 5.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.4932, allocations: 111.8 kB / 490 MB, free: 5.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/0.4934, allocations: 100 kB / 490.1 MB, free: 5.273 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.002144/0.4956, allocations: 1.204 MB / 491.3 MB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004785/0.496, allocations: 248.9 kB / 491.5 MB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004845/0.5009, allocations: 2.527 MB / 494 MB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.775e-05/0.5009, allocations: 16 kB / 494.1 MB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.501, allocations: 7.984 kB / 494.1 MB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.501, allocations: 3.984 kB / 494.1 MB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/0.5111, allocations: 5.916 MB / 500 MB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.5111, allocations: 0 / 500 MB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/0.5124, allocations: 283.8 kB / 0.4885 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009319/0.5134, allocations: 366.4 kB / 0.4889 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.5135, allocations: 39.98 kB / 0.4889 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008162/0.5217, allocations: 7.389 MB / 0.4961 GB, free: 2.672 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.5217, allocations: 8.062 kB / 0.4962 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006382/0.5281, allocations: 3.646 MB / 0.4997 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/0.5293, allocations: 0.494 MB / 0.5002 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003097/0.5296, allocations: 40 kB / 0.5002 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/0.5307, allocations: 83.92 kB / 0.5003 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003006/0.531, allocations: 117.1 kB / 0.5004 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-05/0.5311, allocations: 47.98 kB / 0.5005 GB, free: 14.14 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002543/0.5337, allocations: 1.569 MB / 0.502 GB, free: 12.56 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5337, allocations: 0 / 0.502 GB, free: 12.56 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002275/0.536, allocations: 0.6836 MB / 0.5027 GB, free: 11.88 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.0003706/0.5363, allocations: 187 kB / 0.5029 GB, free: 11.68 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006433/0.5428, allocations: 2.926 MB / 0.5057 GB, free: 8.723 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.5428, allocations: 64 / 0.5057 GB, free: 8.723 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002508/0.5453, allocations: 1.483 MB / 0.5072 GB, free: 7.199 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002702/0.548, allocations: 0.6023 MB / 0.5077 GB, free: 6.602 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/0.5609, allocations: 6.991 MB / 0.5146 GB, free: 15.56 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002717/0.5636, allocations: 2.6 MB / 0.5171 GB, free: 12.94 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000823/0.5645, allocations: 183.4 kB / 0.5173 GB, free: 12.76 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5645, allocations: 4 kB / 0.5173 GB, free: 12.76 MB / 446.1 MB Notification: Performance of Templates: time 0.2704/0.8348, allocations: 95.97 MB / 0.611 GB, free: 74.32 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches