Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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.AIMC_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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 96.7 kB / 16.95 MB, free: 6.891 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.001226/0.001226, allocations: 185.9 kB / 17.84 MB, free: 6.137 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.679/1.679, allocations: 205.4 MB / 224 MB, free: 13.08 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.0004483/0.0004483, allocations: 12 kB / 280.8 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1058, allocations: 47.58 MB / 328.4 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.0157/0.1215, allocations: 14.78 MB / 343.1 MB, free: 5.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01195/0.1335, allocations: 5.338 MB / 348.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003559/0.1371, allocations: 87.62 kB / 348.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004116/0.1412, allocations: 1.014 MB / 349.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00753/0.1488, allocations: 1.48 MB / 351.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003235/0.152, allocations: 0.7056 MB / 351.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01206/0.1641, allocations: 6.405 MB / 358.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007719/0.1719, allocations: 3.47 MB / 361.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005302/0.1772, allocations: 2.047 MB / 363.7 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005895/0.1832, allocations: 2.618 MB / 366.3 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001857/0.185, allocations: 328 kB / 366.6 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003456/0.1885, allocations: 0.5583 MB / 367.2 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001512/0.19, allocations: 1.296 MB / 368.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002036/0.1921, allocations: 1.14 MB / 369.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009129/0.2012, allocations: 8.578 MB / 378.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.2013, allocations: 0 / 378.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2013, allocations: 4 kB / 378.2 MB, free: 2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002723/0.2016, allocations: 0 / 378.2 MB, free: 2 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.2773/0.4788, allocations: 5.528 MB / 383.7 MB, free: 45.74 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.4789, allocations: 10.55 kB / 383.7 MB, free: 45.74 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007688/0.4866, allocations: 1.058 MB / 384.8 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01194/0.4986, allocations: 3.25 MB / 388.1 MB, free: 43.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005756/0.4992, allocations: 366.2 kB / 388.4 MB, free: 43.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002607/0.5018, allocations: 481.1 kB / 388.9 MB, free: 43.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02374/0.5256, allocations: 6.841 MB / 395.7 MB, free: 39.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001838/0.5258, allocations: 13.62 kB / 395.7 MB, free: 39.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009575/0.5268, allocations: 196.2 kB / 395.9 MB, free: 39.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000324/0.5271, allocations: 243.5 kB / 396.2 MB, free: 39.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01492/0.542, allocations: 5.909 MB / 402.1 MB, free: 36.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04906/0.5912, allocations: 21.05 MB / 423.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01011/0.6013, allocations: 9.953 MB / 433.1 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004679/0.6061, allocations: 2.494 MB / 435.6 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0165/0.6226, allocations: 6.531 MB / 442.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.485e-05/0.6227, allocations: 60.56 kB / 442.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=219): time 6.151e-06/0.6228, allocations: 0 / 442.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=226): time 0.02606/0.6488, allocations: 9.793 MB / 452 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.087e-05/0.649, allocations: 73.41 kB / 452 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00741/0.6564, allocations: 2.976 MB / 455 MB, free: 13.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006461/0.6571, allocations: 61.7 kB / 455.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00241/0.6595, allocations: 2.158 MB / 457.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001732/0.6613, allocations: 0.7616 MB / 458 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005718/0.6619, allocations: 48 kB / 458 MB, free: 10.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0004126/0.6623, allocations: 411.2 kB / 458.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003058/0.6654, allocations: 1.293 MB / 459.7 MB, free: 8.902 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003619/0.6691, allocations: 1.924 MB / 461.6 MB, free: 6.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003511/0.6726, allocations: 1.602 MB / 463.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.79e-05/0.6727, allocations: 8 kB / 463.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.00992/0.6826, allocations: 4.245 MB / 467.5 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.791e-05/0.6827, allocations: 16.06 kB / 467.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.933e-05/0.6828, allocations: 20 kB / 467.5 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002983/0.6858, allocations: 0.7789 MB / 468.3 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00284/0.6886, allocations: 0.5772 MB / 468.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01508/0.7037, allocations: 10.03 MB / 478.9 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00386/0.7077, allocations: 119.8 kB / 479 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009035/0.7086, allocations: 99.98 kB / 479.1 MB, free: 4.652 MB / 366.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 (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 initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005775/0.7144, allocations: 1.61 MB / 480.7 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001931/0.7164, allocations: 312.2 kB / 481 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01194/0.7283, allocations: 3.922 MB / 485 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.669e-05/0.7285, allocations: 24 kB / 485 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-05/0.7286, allocations: 8 kB / 485 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.238e-05/0.7286, allocations: 11.95 kB / 485 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.029/0.7576, allocations: 8.568 MB / 493.6 MB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.755e-05/0.7578, allocations: 8.188 kB / 493.6 MB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00228/0.7601, allocations: 351.5 kB / 493.9 MB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003795/0.7639, allocations: 0.9362 MB / 494.9 MB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005191/0.7644, allocations: 55.98 kB / 494.9 MB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01879/0.7832, allocations: 14.42 MB / 0.4974 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.7833, allocations: 4 kB / 0.4974 GB, free: 5.461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01175/0.7951, allocations: 5.693 MB / 0.503 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002569/0.7977, allocations: 0.6885 MB / 0.5036 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001207/0.7989, allocations: 52 kB / 0.5037 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002296/0.8013, allocations: 127.9 kB / 0.5038 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000872/0.8022, allocations: 190.8 kB / 0.504 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003618/0.8025, allocations: 63.98 kB / 0.5041 GB, free: 14.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00565/0.8082, allocations: 2.034 MB / 0.506 GB, free: 12.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.8082, allocations: 0 / 0.506 GB, free: 12.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00586/0.8141, allocations: 0.9479 MB / 0.507 GB, free: 11.55 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001026/0.8152, allocations: 226 kB / 0.5072 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007853/0.823, allocations: 3.906 MB / 0.511 GB, free: 7.363 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.727e-06/0.8231, allocations: 0 / 0.511 GB, free: 7.363 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005004/0.8281, allocations: 2.646 MB / 0.5136 GB, free: 4.645 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006792/0.8349, allocations: 0.892 MB / 0.5145 GB, free: 3.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02427/0.8592, allocations: 11.2 MB / 0.5254 GB, free: 8.488 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006012/0.8653, allocations: 3.426 MB / 0.5287 GB, free: 5.027 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003891/0.8692, allocations: 0.7604 MB / 0.5295 GB, free: 4.262 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/0.8702, allocations: 195.4 kB / 0.5297 GB, free: 4.07 MB / 430.1 MB Notification: Performance of SimCode: time 1.834e-06/0.8703, allocations: 0 / 0.5297 GB, free: 4.07 MB / 430.1 MB Notification: Performance of Templates: time 0.3025/1.173, allocations: 47.17 MB / 0.5757 GB, free: 116.1 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Transformer/AIMC_Transformer.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches