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.001036/0.001036, allocations: 98.7 kB / 17.58 MB, free: 5.418 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.001081/0.001081, allocations: 192.1 kB / 18.51 MB, free: 4.508 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.292/1.292, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001165/0.001165, allocations: 55.92 kB / 280.7 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08405/0.08522, allocations: 46.63 MB / 327.3 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02345/0.1087, allocations: 24.04 MB / 351.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01555/0.1243, allocations: 7.094 MB / 358.4 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005253/0.1297, allocations: 131.5 kB / 358.6 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004743/0.1345, allocations: 1.591 MB / 360.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007107/0.1416, allocations: 2.263 MB / 362.4 MB, free: 1.176 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003778/0.1454, allocations: 1.462 MB / 363.9 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01095/0.1564, allocations: 7.188 MB / 371.1 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007247/0.1636, allocations: 5.474 MB / 376.5 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1804/0.3441, allocations: 3.174 MB / 379.7 MB, free: 17.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00752/0.3517, allocations: 3.819 MB / 383.5 MB, free: 17.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003968/0.3557, allocations: 0.8733 MB / 384.4 MB, free: 17.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006893/0.3626, allocations: 1.31 MB / 385.7 MB, free: 17.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005058/0.3677, allocations: 2.127 MB / 387.8 MB, free: 17.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01096/0.3787, allocations: 3.779 MB / 391.6 MB, free: 16.12 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01501/0.3937, allocations: 11.37 MB / 403 MB, free: 12.53 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.3938, allocations: 0 / 403 MB, free: 12.53 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3938, allocations: 0.5 kB / 403 MB, free: 12.53 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004917/0.3943, allocations: 0 / 403 MB, free: 12.53 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02427/0.4186, allocations: 7.416 MB / 410.4 MB, free: 7.688 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.4187, allocations: 11.12 kB / 410.4 MB, free: 7.688 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00794/0.4266, allocations: 1.225 MB / 411.6 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009754/0.4364, allocations: 3.874 MB / 415.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004752/0.4369, allocations: 438.9 kB / 415.9 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002011/0.4389, allocations: 0.5546 MB / 416.5 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01511/0.4541, allocations: 7.272 MB / 423.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001253/0.4542, allocations: 19.89 kB / 423.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005403/0.4548, allocations: 232.2 kB / 424 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002352/0.455, allocations: 259.3 kB / 424.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0109/0.4659, allocations: 6.102 MB / 430.4 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04157/0.5075, allocations: 23.69 MB / 454.1 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007822/0.5154, allocations: 8.709 MB / 462.8 MB, free: 6.953 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003644/0.5191, allocations: 2.384 MB / 465.1 MB, free: 4.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01202/0.5311, allocations: 6.938 MB / 472.1 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.01e-05/0.5312, allocations: 60.56 kB / 472.1 MB, free: 13.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 4.008e-06/0.5312, allocations: 0 / 472.1 MB, free: 13.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03457/0.5657, allocations: 13.73 MB / 485.9 MB, free: 15.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.5658, allocations: 77.59 kB / 486 MB, free: 15.47 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006127/0.572, allocations: 3.428 MB / 489.4 MB, free: 12.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003369/0.5723, allocations: 73.7 kB / 489.5 MB, free: 11.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001891/0.5742, allocations: 2.68 MB / 492.1 MB, free: 9.277 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009139/0.5751, allocations: 0.9666 MB / 493.1 MB, free: 8.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001101/0.5762, allocations: 0.6333 MB / 493.7 MB, free: 7.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.915e-05/0.5763, allocations: 308.5 kB / 494 MB, free: 7.379 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002654/0.579, allocations: 1.545 MB / 495.6 MB, free: 5.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003342/0.5824, allocations: 2.757 MB / 498.3 MB, free: 2.555 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006479/0.5888, allocations: 4.608 MB / 0.4912 GB, free: 13.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.597e-05/0.5889, allocations: 12 kB / 0.4912 GB, free: 13.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.009248/0.5981, allocations: 5.477 MB / 0.4965 GB, free: 8.195 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/0.5982, allocations: 24 kB / 0.4965 GB, free: 8.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.988e-05/0.5983, allocations: 36 kB / 0.4966 GB, free: 8.137 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001592/0.5999, allocations: 0.6689 MB / 0.4972 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003048/0.6029, allocations: 0.8664 MB / 0.4981 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.6131, allocations: 10.36 MB / 0.5082 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003713/0.6168, allocations: 231.5 kB / 0.5084 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006559/0.6175, allocations: 164.7 kB / 0.5086 GB, free: 11.4 MB / 430.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.003944/0.6214, allocations: 1.618 MB / 0.5102 GB, free: 9.824 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00134/0.6228, allocations: 391.3 kB / 0.5105 GB, free: 9.438 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008551/0.6313, allocations: 4.508 MB / 0.5149 GB, free: 4.832 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.316e-05/0.6314, allocations: 32 kB / 0.515 GB, free: 4.801 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.473e-05/0.6314, allocations: 8 kB / 0.515 GB, free: 4.793 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.939e-05/0.6315, allocations: 16.88 kB / 0.515 GB, free: 4.777 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0182/0.6497, allocations: 9.916 MB / 0.5247 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/0.6497, allocations: 12.12 kB / 0.5247 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002168/0.6519, allocations: 0.4904 MB / 0.5252 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001836/0.6537, allocations: 0.7344 MB / 0.5259 GB, free: 9.508 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002161/0.654, allocations: 75.91 kB / 0.5259 GB, free: 9.434 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2072/0.8612, allocations: 14.12 MB / 0.5397 GB, free: 151.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-05/0.8612, allocations: 9.25 kB / 0.5397 GB, free: 151.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01213/0.8734, allocations: 6.584 MB / 0.5462 GB, free: 150.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002266/0.8757, allocations: 0.7725 MB / 0.5469 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006799/0.8764, allocations: 63.95 kB / 0.547 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002059/0.8784, allocations: 162.8 kB / 0.5471 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005835/0.879, allocations: 204.7 kB / 0.5473 GB, free: 149.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001975/0.8792, allocations: 84.58 kB / 0.5474 GB, free: 149.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00387/0.8831, allocations: 2.307 MB / 0.5497 GB, free: 149 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8831, allocations: 0 / 0.5497 GB, free: 149 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004005/0.8871, allocations: 1.104 MB / 0.5508 GB, free: 148.9 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.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.0005718/0.8877, allocations: 279.1 kB / 0.551 GB, free: 148.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01266/0.9004, allocations: 6.66 MB / 0.5575 GB, free: 146.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.9004, allocations: 2.562 kB / 0.5575 GB, free: 146.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00383/0.9043, allocations: 2.836 MB / 0.5603 GB, free: 145.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004208/0.9085, allocations: 0.9113 MB / 0.5612 GB, free: 144.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01607/0.9246, allocations: 10.56 MB / 0.5715 GB, free: 137.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002613/0.9272, allocations: 3.501 MB / 0.5749 GB, free: 134.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002999/0.9302, allocations: 0.8606 MB / 0.5758 GB, free: 134.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000705/0.931, allocations: 258.5 kB / 0.576 GB, free: 133.9 MB / 446.1 MB Notification: Performance of SimCode: time 2.645e-06/0.931, allocations: 0 / 0.576 GB, free: 133.9 MB / 446.1 MB Notification: Performance of Templates: time 0.07832/1.009, allocations: 53.7 MB / 0.6284 GB, free: 82.18 MB / 446.1 MB 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/jenkins/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/jenkins/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