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: 109.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.3 MB / 246.9 MB, free: 10.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 68.05 kB / 306.9 MB, free: 1.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1033, allocations: 50.53 MB / 357.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1997/0.303, allocations: 24.42 MB / 381.9 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01335/0.3164, allocations: 7.318 MB / 389.2 MB, free: 4.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005189/0.3216, allocations: 139.7 kB / 389.3 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005404/0.3271, allocations: 1.363 MB / 390.7 MB, free: 3.422 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008533/0.3357, allocations: 2.058 MB / 392.7 MB, free: 2.086 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004674/0.3404, allocations: 1.363 MB / 394.1 MB, free: 1.164 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01168/0.3521, allocations: 7.868 MB / 402 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007004/0.3591, allocations: 4.648 MB / 406.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005032/0.3642, allocations: 2.669 MB / 409.3 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006382/0.3706, allocations: 3.595 MB / 412.9 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001862/0.3725, allocations: 0.5156 MB / 413.4 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003686/0.3762, allocations: 0.9641 MB / 414.4 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002092/0.3783, allocations: 1.764 MB / 416.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005756/0.3841, allocations: 3.398 MB / 419.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01092/0.395, allocations: 9.587 MB / 429.1 MB, free: 5.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.395, allocations: 0 / 429.1 MB, free: 5.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3951, allocations: 0 / 429.1 MB, free: 5.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003527/0.3954, allocations: 0 / 429.1 MB, free: 5.02 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.02078/0.4162, allocations: 7.443 MB / 436.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.4163, allocations: 8.031 kB / 436.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006608/0.4229, allocations: 1.254 MB / 437.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008275/0.4312, allocations: 3.865 MB / 441.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004201/0.4316, allocations: 440.2 kB / 442.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001497/0.4331, allocations: 0.5622 MB / 442.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01556/0.4487, allocations: 7.296 MB / 450 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001874/0.4489, allocations: 15.84 kB / 450 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001001/0.4499, allocations: 236 kB / 450.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002772/0.4502, allocations: 259.2 kB / 450.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01356/0.4638, allocations: 6.154 MB / 456.6 MB, free: 9.281 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04677/0.5106, allocations: 23.87 MB / 480.5 MB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009664/0.5203, allocations: 9.006 MB / 489.5 MB, free: 6.762 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004694/0.5251, allocations: 2.484 MB / 492 MB, free: 4.262 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01535/0.5404, allocations: 7.616 MB / 499.6 MB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.188e-05/0.5405, allocations: 60.55 kB / 499.7 MB, free: 12.22 MB / 414.1 MB Notification: Performance of pre-optimization done (n=238): time 5.821e-06/0.5405, allocations: 0 / 499.7 MB, free: 12.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=282): time 0.03467/0.5752, allocations: 14.04 MB / 0.5017 GB, free: 13.96 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.5753, allocations: 85.59 kB / 0.5017 GB, free: 13.87 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006319/0.5816, allocations: 3.512 MB / 0.5052 GB, free: 10.37 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004895/0.5821, allocations: 73.7 kB / 0.5052 GB, free: 10.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002088/0.5842, allocations: 2.698 MB / 0.5079 GB, free: 7.566 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00119/0.5854, allocations: 0.9588 MB / 0.5088 GB, free: 6.594 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001484/0.5869, allocations: 0.6411 MB / 0.5094 GB, free: 5.945 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.94e-05/0.587, allocations: 305.1 kB / 0.5097 GB, free: 5.645 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002752/0.5898, allocations: 1.561 MB / 0.5113 GB, free: 4.082 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003399/0.5932, allocations: 2.763 MB / 0.5139 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006401/0.5996, allocations: 4.629 MB / 0.5185 GB, free: 11.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-05/0.5997, allocations: 16 kB / 0.5185 GB, free: 11.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.0102/0.6099, allocations: 5.538 MB / 0.5239 GB, free: 5.926 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.985e-05/0.61, allocations: 20 kB / 0.5239 GB, free: 5.906 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.135e-05/0.61, allocations: 39.98 kB / 0.524 GB, free: 5.867 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00179/0.6118, allocations: 0.7068 MB / 0.5246 GB, free: 5.145 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003303/0.6152, allocations: 0.8463 MB / 0.5255 GB, free: 4.297 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1815/0.7967, allocations: 9.74 MB / 0.535 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003629/0.8004, allocations: 227.7 kB / 0.5352 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004261/0.8008, allocations: 167.1 kB / 0.5354 GB, free: 132.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.003055/0.8039, allocations: 1.629 MB / 0.5369 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009634/0.8048, allocations: 391.6 kB / 0.5373 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0078/0.8126, allocations: 4.582 MB / 0.5418 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.636e-05/0.8127, allocations: 32.42 kB / 0.5418 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.027e-05/0.8127, allocations: 7.625 kB / 0.5418 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.231e-05/0.8128, allocations: 14.78 kB / 0.5418 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01698/0.8298, allocations: 10.06 MB / 0.5517 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-05/0.8298, allocations: 8.594 kB / 0.5517 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002105/0.8319, allocations: 0.4962 MB / 0.5522 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00189/0.8338, allocations: 0.7619 MB / 0.5529 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002361/0.8341, allocations: 79.48 kB / 0.553 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/0.8442, allocations: 13.19 MB / 0.5659 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.8443, allocations: 8.375 kB / 0.5659 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/0.8543, allocations: 6.687 MB / 0.5724 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001913/0.8563, allocations: 0.7881 MB / 0.5732 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009621/0.8573, allocations: 63.8 kB / 0.5732 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002402/0.8597, allocations: 168.4 kB / 0.5734 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005/0.8602, allocations: 205.3 kB / 0.5736 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002402/0.8605, allocations: 85.69 kB / 0.5737 GB, free: 111.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00401/0.8645, allocations: 2.377 MB / 0.576 GB, free: 110.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8645, allocations: 3.5 kB / 0.576 GB, free: 110.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00463/0.8691, allocations: 1.112 MB / 0.5771 GB, free: 110.3 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.0007592/0.8699, allocations: 307.1 kB / 0.5774 GB, free: 110.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007078/0.877, allocations: 4.74 MB / 0.582 GB, free: 105.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/0.8771, allocations: 4 kB / 0.582 GB, free: 105.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004223/0.8813, allocations: 2.867 MB / 0.5848 GB, free: 102.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005538/0.8868, allocations: 0.866 MB / 0.5857 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01923/0.9061, allocations: 13.03 MB / 0.5984 GB, free: 88.33 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002827/0.909, allocations: 3.441 MB / 0.6017 GB, free: 84.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00135/0.9103, allocations: 291.4 kB / 0.602 GB, free: 84.57 MB / 446.1 MB Notification: Performance of SimCode: time 6.01e-07/0.9103, allocations: 0 / 0.602 GB, free: 84.57 MB / 446.1 MB Notification: Performance of Templates: time 0.3496/1.26, allocations: 240.7 MB / 0.8371 GB, free: 24.43 MB / 462.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/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