Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 208.4 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.432/1.432, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 55.92 kB / 377.8 MB, free: 2.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2818, allocations: 53.35 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.02008/0.3018, allocations: 15.18 MB / 446.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01391/0.3158, allocations: 5.658 MB / 451.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00361/0.3194, allocations: 151 kB / 452.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004288/0.3237, allocations: 1.347 MB / 453.4 MB, free: 228 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005973/0.3296, allocations: 1.806 MB / 455.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003029/0.3327, allocations: 1.075 MB / 456.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00883/0.3415, allocations: 6.363 MB / 462.7 MB, free: 6.945 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004733/0.3462, allocations: 2.854 MB / 465.5 MB, free: 4.008 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005881/0.3521, allocations: 3.038 MB / 468.6 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006862/0.359, allocations: 3.519 MB / 472.1 MB, free: 13.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002148/0.3611, allocations: 0.7852 MB / 472.9 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003504/0.3646, allocations: 1.078 MB / 474 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002669/0.3673, allocations: 1.87 MB / 475.8 MB, free: 9.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005312/0.3726, allocations: 2.68 MB / 478.5 MB, free: 7.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01473/0.3873, allocations: 10.64 MB / 489.1 MB, free: 12.33 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.3873, allocations: 0 / 489.1 MB, free: 12.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3873, allocations: 4 kB / 489.2 MB, free: 12.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000322/0.3877, allocations: 0 / 489.2 MB, free: 12.33 MB / 398.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.01911/0.4068, allocations: 6.604 MB / 495.8 MB, free: 5.652 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.4068, allocations: 12.03 kB / 495.8 MB, free: 5.641 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001209/0.408, allocations: 0.6711 MB / 496.4 MB, free: 4.961 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005266/0.4133, allocations: 1.098 MB / 497.5 MB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00941/0.4227, allocations: 3.642 MB / 0.4894 GB, free: 152 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004738/0.4232, allocations: 361.7 kB / 0.4898 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001782/0.425, allocations: 484 kB / 0.4902 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01415/0.4391, allocations: 7.186 MB / 0.4973 GB, free: 7.98 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001042/0.4392, allocations: 7.953 kB / 0.4973 GB, free: 7.973 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000491/0.4397, allocations: 204 kB / 0.4975 GB, free: 7.773 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002527/0.4399, allocations: 245.8 kB / 0.4977 GB, free: 7.531 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01242/0.4524, allocations: 5.933 MB / 0.5035 GB, free: 1.586 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04078/0.4931, allocations: 18.62 MB / 0.5217 GB, free: 14.54 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009132/0.5023, allocations: 4.451 MB / 0.526 GB, free: 10.35 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004239/0.5065, allocations: 2.286 MB / 0.5283 GB, free: 8.062 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0141/0.5206, allocations: 5.681 MB / 0.5338 GB, free: 2.344 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.969e-05/0.5207, allocations: 60.56 kB / 0.5339 GB, free: 2.277 MB / 446.1 MB Notification: Performance of pre-optimization done (n=219): time 5.941e-06/0.5207, allocations: 0 / 0.5339 GB, free: 2.277 MB / 446.1 MB Notification: Performance of matching and sorting (n=226): time 0.2256/0.7463, allocations: 8.98 MB / 0.5426 GB, free: 96.46 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.7463, allocations: 77.58 kB / 0.5427 GB, free: 96.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003889/0.7502, allocations: 3.052 MB / 0.5457 GB, free: 95.28 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000281/0.7505, allocations: 61.58 kB / 0.5457 GB, free: 95.22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/0.7516, allocations: 2.228 MB / 0.5479 GB, free: 93.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005345/0.7521, allocations: 0.801 MB / 0.5487 GB, free: 93.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006126/0.7527, allocations: 469.4 kB / 0.5491 GB, free: 93.05 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.532e-05/0.7528, allocations: 305.1 kB / 0.5494 GB, free: 92.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001612/0.7544, allocations: 1.294 MB / 0.5507 GB, free: 92.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001788/0.7562, allocations: 1.946 MB / 0.5526 GB, free: 91.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003431/0.7596, allocations: 3.341 MB / 0.5559 GB, free: 88.78 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.528e-05/0.7596, allocations: 8 kB / 0.5559 GB, free: 88.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.006072/0.7657, allocations: 4.168 MB / 0.5599 GB, free: 85.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.7657, allocations: 12 kB / 0.56 GB, free: 85.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.134e-05/0.7658, allocations: 22.52 kB / 0.56 GB, free: 85.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002485/0.7683, allocations: 0.7675 MB / 0.5607 GB, free: 84.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002226/0.7705, allocations: 0.5655 MB / 0.5613 GB, free: 83.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007879/0.7784, allocations: 10.36 MB / 0.5714 GB, free: 73.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002307/0.7807, allocations: 103.9 kB / 0.5715 GB, free: 72.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003543/0.781, allocations: 100 kB / 0.5716 GB, free: 72.88 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.002558/0.7836, allocations: 1.624 MB / 0.5732 GB, free: 71.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008411/0.7844, allocations: 333.9 kB / 0.5735 GB, free: 70.94 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005656/0.7901, allocations: 3.733 MB / 0.5771 GB, free: 67.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.7901, allocations: 24.88 kB / 0.5772 GB, free: 67.15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.426e-05/0.7901, allocations: 8 kB / 0.5772 GB, free: 67.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.7901, allocations: 7.969 kB / 0.5772 GB, free: 67.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01534/0.8055, allocations: 7.903 MB / 0.5849 GB, free: 59.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.8055, allocations: 0 / 0.5849 GB, free: 59.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001543/0.807, allocations: 347.8 kB / 0.5852 GB, free: 58.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002981/0.81, allocations: 0.9484 MB / 0.5861 GB, free: 57.88 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002967/0.8103, allocations: 59.98 kB / 0.5862 GB, free: 57.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01155/0.8219, allocations: 14.96 MB / 0.6008 GB, free: 42.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.8219, allocations: 4.594 kB / 0.6008 GB, free: 42.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007591/0.8295, allocations: 5.535 MB / 0.6062 GB, free: 36.61 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001875/0.8313, allocations: 0.6472 MB / 0.6069 GB, free: 35.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007409/0.8321, allocations: 55.98 kB / 0.6069 GB, free: 35.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001711/0.8338, allocations: 108.1 kB / 0.607 GB, free: 35.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004256/0.8342, allocations: 205.4 kB / 0.6072 GB, free: 35.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001543/0.8344, allocations: 67.92 kB / 0.6073 GB, free: 35.54 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002847/0.8372, allocations: 2.079 MB / 0.6093 GB, free: 33.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.8372, allocations: 0 / 0.6093 GB, free: 33.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003267/0.8405, allocations: 0.9419 MB / 0.6102 GB, free: 32.52 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.008115/0.8486, allocations: 6.259 MB / 0.6163 GB, free: 26.22 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00517/0.8538, allocations: 3.715 MB / 0.62 GB, free: 22.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.8538, allocations: 0 / 0.62 GB, free: 22.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003382/0.8572, allocations: 2.548 MB / 0.6225 GB, free: 19.83 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005165/0.8623, allocations: 0.9213 MB / 0.6234 GB, free: 18.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05574/0.9181, allocations: 33.71 MB / 0.6563 GB, free: 388 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004636/0.9227, allocations: 2.919 MB / 0.6591 GB, free: 13.41 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002632/0.9253, allocations: 0.7606 MB / 0.6599 GB, free: 12.64 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002928/0.9283, allocations: 1.847 MB / 0.6617 GB, free: 10.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.032e-06/0.9283, allocations: 0 / 0.6617 GB, free: 10.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3757/1.304, allocations: 92.09 MB / 0.7516 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.96/16.26, allocations: 9.562 kB / 0.7516 GB, free: 179.1 MB / 0.5294 GB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 27.984598039998673]