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.001363/0.001363, allocations: 102 kB / 18.39 MB, free: 4.52 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.001224/0.001224, allocations: 190.5 kB / 19.33 MB, free: 3.594 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.516/1.516, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001213/0.001213, allocations: 47.94 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1109, allocations: 46.62 MB / 375.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.2635/0.3745, allocations: 16.76 MB / 392.6 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.3874, allocations: 5.721 MB / 398.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004938/0.3924, allocations: 97.22 kB / 398.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005339/0.3978, allocations: 1.333 MB / 399.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007581/0.4054, allocations: 1.774 MB / 401.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004531/0.41, allocations: 1.051 MB / 402.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0129/0.4229, allocations: 6.326 MB / 408.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01367/0.4366, allocations: 5.283 MB / 414.2 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008861/0.4455, allocations: 2.963 MB / 417.1 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007811/0.4534, allocations: 3.335 MB / 420.5 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002971/0.4564, allocations: 0.7929 MB / 421.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005078/0.4615, allocations: 1.062 MB / 422.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003582/0.4651, allocations: 1.862 MB / 424.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008429/0.4735, allocations: 3.345 MB / 427.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01579/0.4894, allocations: 10.51 MB / 438 MB, free: 1.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.4894, allocations: 0 / 438 MB, free: 1.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4894, allocations: 4 kB / 438.1 MB, free: 1.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003751/0.4898, allocations: 4 kB / 438.1 MB, free: 1.312 MB / 350.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.02077/0.5106, allocations: 6.507 MB / 444.6 MB, free: 10.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.5107, allocations: 19.95 kB / 444.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005498/0.5162, allocations: 1.052 MB / 445.6 MB, free: 9.645 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007513/0.5237, allocations: 3.412 MB / 449 MB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003875/0.5242, allocations: 361.7 kB / 449.4 MB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00168/0.5258, allocations: 487.8 kB / 449.9 MB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01564/0.5415, allocations: 6.873 MB / 456.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.661e-05/0.5416, allocations: 4 kB / 456.8 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004887/0.5421, allocations: 200 kB / 456.9 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002353/0.5424, allocations: 241.8 kB / 457.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01138/0.5538, allocations: 5.926 MB / 463.1 MB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03908/0.5929, allocations: 20.66 MB / 483.8 MB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0101/0.603, allocations: 9.968 MB / 493.7 MB, free: 7.902 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004074/0.6072, allocations: 2.473 MB / 496.2 MB, free: 5.422 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01146/0.6186, allocations: 6.49 MB / 0.4909 GB, free: 14.82 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001211/0.6188, allocations: 60.56 kB / 0.491 GB, free: 14.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=219): time 3.727e-06/0.6188, allocations: 0 / 0.491 GB, free: 14.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=226): time 0.01846/0.6373, allocations: 9.687 MB / 0.5004 GB, free: 4.848 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.6374, allocations: 73.41 kB / 0.5005 GB, free: 4.762 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004594/0.642, allocations: 2.988 MB / 0.5034 GB, free: 1.758 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003071/0.6423, allocations: 69.7 kB / 0.5035 GB, free: 1.684 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001523/0.6438, allocations: 2.156 MB / 0.5056 GB, free: 15.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008371/0.6447, allocations: 0.7624 MB / 0.5063 GB, free: 14.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007368/0.6454, allocations: 469 kB / 0.5068 GB, free: 14.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.936e-05/0.6455, allocations: 305.1 kB / 0.5071 GB, free: 13.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002031/0.6476, allocations: 1.286 MB / 0.5083 GB, free: 12.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002493/0.6501, allocations: 1.92 MB / 0.5102 GB, free: 10.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004611/0.6547, allocations: 3.352 MB / 0.5135 GB, free: 6.891 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.702e-05/0.6548, allocations: 7.938 kB / 0.5135 GB, free: 6.883 MB / 446.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007564/0.6623, allocations: 4.237 MB / 0.5176 GB, free: 2.602 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.803e-05/0.6624, allocations: 16 kB / 0.5176 GB, free: 2.586 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.423e-05/0.6624, allocations: 16 kB / 0.5177 GB, free: 2.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002495/0.6649, allocations: 0.7705 MB / 0.5184 GB, free: 1.785 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002364/0.6673, allocations: 0.5694 MB / 0.519 GB, free: 1.215 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/0.6785, allocations: 10.89 MB / 0.5296 GB, free: 5.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002883/0.6815, allocations: 103.9 kB / 0.5297 GB, free: 5.668 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002894/0.6818, allocations: 100 kB / 0.5298 GB, free: 5.57 MB / 462.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.003611/0.6854, allocations: 1.621 MB / 0.5314 GB, free: 3.938 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009226/0.6863, allocations: 316.2 kB / 0.5317 GB, free: 3.625 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006777/0.6931, allocations: 3.902 MB / 0.5355 GB, free: 15.65 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.129e-05/0.6931, allocations: 20 kB / 0.5355 GB, free: 15.63 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.899e-05/0.6932, allocations: 12 kB / 0.5355 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-05/0.6932, allocations: 11.95 kB / 0.5355 GB, free: 15.61 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0145/0.7077, allocations: 8.575 MB / 0.5439 GB, free: 6.883 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.7078, allocations: 0 / 0.5439 GB, free: 6.883 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001549/0.7093, allocations: 347.5 kB / 0.5442 GB, free: 6.543 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002955/0.7123, allocations: 0.9384 MB / 0.5451 GB, free: 5.586 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000245/0.7126, allocations: 51.98 kB / 0.5452 GB, free: 5.535 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.269/0.9815, allocations: 15.68 MB / 0.5605 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.9816, allocations: 2.5 kB / 0.5605 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009734/0.9913, allocations: 5.702 MB / 0.5661 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002045/0.9934, allocations: 0.6902 MB / 0.5668 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006762/0.9941, allocations: 46.91 kB / 0.5668 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001589/0.9957, allocations: 116.2 kB / 0.5669 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005305/0.9963, allocations: 186.3 kB / 0.5671 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/0.9964, allocations: 62.83 kB / 0.5671 GB, free: 137.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003526/0.9999, allocations: 2.061 MB / 0.5692 GB, free: 137.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1, allocations: 5.219 kB / 0.5692 GB, free: 137.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003972/1.004, allocations: 0.9398 MB / 0.5701 GB, free: 137 MB / 478.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%), (2,26,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,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.0008592/1.005, allocations: 265.2 kB / 0.5703 GB, free: 136.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006638/1.011, allocations: 3.901 MB / 0.5741 GB, free: 135.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/1.012, allocations: 5.094 kB / 0.5742 GB, free: 135.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004474/1.016, allocations: 2.63 MB / 0.5767 GB, free: 133.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004781/1.021, allocations: 0.9182 MB / 0.5776 GB, free: 133.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01798/1.039, allocations: 9.364 MB / 0.5868 GB, free: 129.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002599/1.041, allocations: 3.328 MB / 0.59 GB, free: 127.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009795/1.042, allocations: 218.1 kB / 0.5902 GB, free: 127.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.272e-06/1.042, allocations: 0 / 0.5902 GB, free: 127.7 MB / 478.1 MB Notification: Performance of Templates: time 0.3777/1.42, allocations: 204.2 MB / 0.7896 GB, free: 121.9 MB / 494.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Transformer/AIMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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