Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.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.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001118/0.001118, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 59.28 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08846/0.08974, allocations: 50.54 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.1843/0.2741, allocations: 17.43 MB / 376.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.2846, allocations: 5.969 MB / 382.3 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003856/0.2885, allocations: 114.2 kB / 382.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004332/0.2928, allocations: 1.353 MB / 383.8 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00627/0.2992, allocations: 1.757 MB / 385.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002913/0.3021, allocations: 1.089 MB / 386.6 MB, free: 7.113 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007667/0.3098, allocations: 6.344 MB / 393 MB, free: 3.852 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00561/0.3154, allocations: 5.382 MB / 398.3 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005133/0.3206, allocations: 2.956 MB / 401.3 MB, free: 40 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005233/0.3258, allocations: 3.464 MB / 404.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001225/0.327, allocations: 0.7893 MB / 405.6 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002671/0.3297, allocations: 1.089 MB / 406.6 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001588/0.3313, allocations: 1.862 MB / 408.5 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004552/0.3359, allocations: 3.361 MB / 411.9 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01053/0.3464, allocations: 10.56 MB / 422.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3465, allocations: 0 / 422.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3465, allocations: 0 / 422.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000263/0.3468, allocations: 3.938 kB / 422.4 MB, free: 12.29 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01614/0.3629, allocations: 6.557 MB / 429 MB, free: 5.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.363, allocations: 8.031 kB / 429 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004945/0.3679, allocations: 1.083 MB / 430.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006736/0.3747, allocations: 3.685 MB / 433.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002379/0.3749, allocations: 365.7 kB / 434.1 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006915/0.3756, allocations: 487.9 kB / 434.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01145/0.3871, allocations: 6.873 MB / 441.5 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-05/0.3872, allocations: 11.92 kB / 441.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000421/0.3876, allocations: 196 kB / 441.7 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000207/0.3879, allocations: 241.8 kB / 441.9 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00935/0.3972, allocations: 5.937 MB / 447.8 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02936/0.4266, allocations: 20.74 MB / 468.6 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00904/0.4357, allocations: 9.966 MB / 478.6 MB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003436/0.4391, allocations: 2.489 MB / 481 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01116/0.4503, allocations: 6.716 MB / 487.8 MB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.324e-05/0.4504, allocations: 56.56 kB / 487.8 MB, free: 8.961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=219): time 3.617e-06/0.4504, allocations: 4 kB / 487.8 MB, free: 8.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=226): time 0.01745/0.4679, allocations: 9.679 MB / 497.5 MB, free: 15.07 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.4679, allocations: 73.41 kB / 497.6 MB, free: 14.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004927/0.4729, allocations: 3.014 MB / 0.4889 GB, free: 11.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002079/0.4731, allocations: 61.7 kB / 0.4889 GB, free: 11.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001512/0.4746, allocations: 2.18 MB / 0.491 GB, free: 9.688 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006529/0.4753, allocations: 0.7548 MB / 0.4918 GB, free: 8.922 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007664/0.4761, allocations: 469 kB / 0.4922 GB, free: 8.457 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.26e-05/0.4762, allocations: 301.1 kB / 0.4925 GB, free: 8.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001991/0.4782, allocations: 1.301 MB / 0.4938 GB, free: 6.855 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002383/0.4806, allocations: 1.92 MB / 0.4957 GB, free: 4.672 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004372/0.4849, allocations: 3.336 MB / 0.4989 GB, free: 1.086 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.548e-05/0.485, allocations: 12 kB / 0.4989 GB, free: 1.074 MB / 414.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.00711/0.4921, allocations: 4.249 MB / 0.5031 GB, free: 12.78 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.996e-05/0.4921, allocations: 12 kB / 0.5031 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.679e-05/0.4922, allocations: 20 kB / 0.5031 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002502/0.4947, allocations: 0.7725 MB / 0.5039 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/0.4968, allocations: 0.5578 MB / 0.5044 GB, free: 11.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/0.5075, allocations: 10.88 MB / 0.515 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002395/0.5099, allocations: 107.9 kB / 0.5151 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003574/0.5103, allocations: 108 kB / 0.5152 GB, free: 15.76 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 4 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002954/0.5133, allocations: 1.61 MB / 0.5168 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008651/0.5141, allocations: 324.2 kB / 0.5171 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006512/0.5206, allocations: 3.906 MB / 0.5209 GB, free: 9.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/0.5207, allocations: 23.98 kB / 0.521 GB, free: 9.816 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-05/0.5207, allocations: 12 kB / 0.521 GB, free: 9.805 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.807e-05/0.5207, allocations: 12.09 kB / 0.521 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/0.535, allocations: 8.568 MB / 0.5293 GB, free: 1.078 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.5351, allocations: 3.938 kB / 0.5294 GB, free: 1.074 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/0.5366, allocations: 351.8 kB / 0.5297 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1719/0.7085, allocations: 0.9258 MB / 0.5306 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000417/0.709, allocations: 63.64 kB / 0.5307 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01442/0.7234, allocations: 15.74 MB / 0.546 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.7234, allocations: 7.875 kB / 0.546 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008369/0.7318, allocations: 5.683 MB / 0.5516 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001696/0.7335, allocations: 0.6926 MB / 0.5523 GB, free: 126.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003979/0.7339, allocations: 60.28 kB / 0.5523 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/0.7353, allocations: 106.8 kB / 0.5524 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004599/0.7357, allocations: 192.1 kB / 0.5526 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/0.7359, allocations: 59.2 kB / 0.5527 GB, free: 126.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002807/0.7387, allocations: 2.084 MB / 0.5547 GB, free: 125.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.7387, allocations: 0 / 0.5547 GB, free: 125.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002664/0.7414, allocations: 0.9432 MB / 0.5556 GB, free: 125.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * Array equations: 0 * 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 {(1,8,100.0%), (3,25,88.9%), (1,1,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005508/0.7419, allocations: 259.1 kB / 0.5559 GB, free: 125.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004816/0.7468, allocations: 3.904 MB / 0.5597 GB, free: 123.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.7468, allocations: 3.562 kB / 0.5597 GB, free: 123.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003092/0.7499, allocations: 2.647 MB / 0.5623 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003082/0.753, allocations: 0.9304 MB / 0.5632 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01167/0.7647, allocations: 9.436 MB / 0.5724 GB, free: 117.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002354/0.767, allocations: 3.436 MB / 0.5757 GB, free: 116.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00189/0.7689, allocations: 0.7572 MB / 0.5765 GB, free: 115.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004975/0.7694, allocations: 200.6 kB / 0.5767 GB, free: 115.4 MB / 446.1 MB Notification: Performance of SimCode: time 7.01e-07/0.7695, allocations: 0 / 0.5767 GB, free: 115.4 MB / 446.1 MB Notification: Performance of Templates: time 0.06199/0.8315, allocations: 48.23 MB / 0.6238 GB, free: 67.91 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches