Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001394/0.001394, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001349/0.001349, allocations: 213 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 230.5 MB / 257.4 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 63.89 kB / 377.8 MB, free: 2.785 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2987, allocations: 53.41 MB / 431.2 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.02324/0.3219, allocations: 17.47 MB / 448.6 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01357/0.3355, allocations: 5.686 MB / 454.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004415/0.3399, allocations: 155.1 kB / 454.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005313/0.3452, allocations: 1.324 MB / 455.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007242/0.3525, allocations: 1.957 MB / 457.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004061/0.3565, allocations: 1.192 MB / 458.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009729/0.3663, allocations: 6.443 MB / 465.4 MB, free: 4.074 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005943/0.3722, allocations: 2.837 MB / 468.2 MB, free: 1.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005589/0.3778, allocations: 3.065 MB / 471.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006909/0.3847, allocations: 3.487 MB / 474.8 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002393/0.3871, allocations: 0.8007 MB / 475.6 MB, free: 9.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003943/0.3911, allocations: 1.074 MB / 476.7 MB, free: 8.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00289/0.3939, allocations: 1.995 MB / 478.6 MB, free: 6.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006336/0.4003, allocations: 2.747 MB / 481.4 MB, free: 3.941 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01463/0.4149, allocations: 10.75 MB / 492.1 MB, free: 9.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.4149, allocations: 0 / 492.1 MB, free: 9.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4149, allocations: 0 / 492.1 MB, free: 9.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003213/0.4152, allocations: 0 / 492.1 MB, free: 9.16 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: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.02137/0.4366, allocations: 6.819 MB / 499 MB, free: 2.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.004e-05/0.4367, allocations: 15.98 kB / 499 MB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00232/0.439, allocations: 0.7 MB / 499.7 MB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00644/0.4454, allocations: 1.11 MB / 0.489 GB, free: 440 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009212/0.4546, allocations: 3.667 MB / 0.4926 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004095/0.4551, allocations: 390.4 kB / 0.493 GB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001549/0.4566, allocations: 0.5155 MB / 0.4935 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01586/0.4725, allocations: 7.208 MB / 0.5005 GB, free: 4.453 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001579/0.4726, allocations: 11.95 kB / 0.5006 GB, free: 4.441 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007137/0.4733, allocations: 212 kB / 0.5008 GB, free: 4.234 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002626/0.4736, allocations: 238.2 kB / 0.501 GB, free: 4 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01286/0.4865, allocations: 5.915 MB / 0.5068 GB, free: 14.07 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04151/0.528, allocations: 19.02 MB / 0.5253 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007945/0.5359, allocations: 3.899 MB / 0.5291 GB, free: 6.871 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0044/0.5403, allocations: 2.19 MB / 0.5313 GB, free: 4.672 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.244/0.7843, allocations: 5.299 MB / 0.5365 GB, free: 97.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.758e-05/0.7844, allocations: 57.5 kB / 0.5365 GB, free: 97.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=219): time 5.901e-06/0.7844, allocations: 0 / 0.5365 GB, free: 97.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=238): time 0.02368/0.8081, allocations: 10.6 MB / 0.5469 GB, free: 94.51 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/0.8081, allocations: 80.06 kB / 0.5469 GB, free: 94.44 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004386/0.8125, allocations: 3.062 MB / 0.5499 GB, free: 93.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003627/0.8129, allocations: 65.14 kB / 0.55 GB, free: 93.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0016/0.8145, allocations: 2.388 MB / 0.5523 GB, free: 91.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008571/0.8153, allocations: 0.8479 MB / 0.5532 GB, free: 90.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007334/0.8161, allocations: 0.5135 MB / 0.5537 GB, free: 90.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.791e-05/0.8161, allocations: 305.1 kB / 0.5539 GB, free: 90.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001872/0.818, allocations: 1.354 MB / 0.5553 GB, free: 89.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002117/0.8201, allocations: 2.163 MB / 0.5574 GB, free: 86.78 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004161/0.8243, allocations: 3.704 MB / 0.561 GB, free: 83.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.464e-05/0.8243, allocations: 4 kB / 0.561 GB, free: 83.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.006943/0.8312, allocations: 4.585 MB / 0.5655 GB, free: 78.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.742e-05/0.8313, allocations: 16 kB / 0.5655 GB, free: 78.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.038e-05/0.8313, allocations: 20 kB / 0.5655 GB, free: 78.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001667/0.833, allocations: 0.7621 MB / 0.5663 GB, free: 77.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002064/0.835, allocations: 0.6335 MB / 0.5669 GB, free: 76.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009978/0.845, allocations: 13.7 MB / 0.5803 GB, free: 62.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003015/0.848, allocations: 168.5 kB / 0.5804 GB, free: 62.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003313/0.8484, allocations: 124 kB / 0.5805 GB, free: 62.23 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (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 (324): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (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): 7 systems {(1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002732/0.8511, allocations: 1.598 MB / 0.5821 GB, free: 60.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007822/0.8519, allocations: 345.8 kB / 0.5824 GB, free: 60.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006159/0.858, allocations: 4.027 MB / 0.5864 GB, free: 56.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/0.858, allocations: 24 kB / 0.5864 GB, free: 56.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.555e-05/0.8581, allocations: 12 kB / 0.5864 GB, free: 56.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/0.8581, allocations: 15.95 kB / 0.5864 GB, free: 56.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01397/0.8721, allocations: 8.434 MB / 0.5946 GB, free: 47.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.8721, allocations: 8.438 kB / 0.5947 GB, free: 47.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001473/0.8735, allocations: 371.5 kB / 0.595 GB, free: 47.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002224/0.8758, allocations: 0.9275 MB / 0.5959 GB, free: 46.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001971/0.876, allocations: 67.95 kB / 0.596 GB, free: 46.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01247/0.8884, allocations: 17.01 MB / 0.6126 GB, free: 28.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.8884, allocations: 8.562 kB / 0.6126 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007964/0.8964, allocations: 5.921 MB / 0.6184 GB, free: 22.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00199/0.8984, allocations: 0.6421 MB / 0.619 GB, free: 21.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006108/0.899, allocations: 59.98 kB / 0.6191 GB, free: 21.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/0.9006, allocations: 127.9 kB / 0.6192 GB, free: 21.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004285/0.901, allocations: 213.4 kB / 0.6194 GB, free: 21.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001442/0.9011, allocations: 71.92 kB / 0.6195 GB, free: 21.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002842/0.904, allocations: 2.058 MB / 0.6215 GB, free: 19.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.904, allocations: 0 / 0.6215 GB, free: 19.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004091/0.9081, allocations: 0.9804 MB / 0.6224 GB, free: 18.22 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * 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): 8 systems {(2,12,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,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.008372/0.9164, allocations: 6.619 MB / 0.6289 GB, free: 11.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005823/0.9223, allocations: 4.22 MB / 0.633 GB, free: 7.191 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/0.9223, allocations: 0 / 0.633 GB, free: 7.191 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003624/0.9259, allocations: 2.875 MB / 0.6358 GB, free: 4.211 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004273/0.9302, allocations: 0.9158 MB / 0.6367 GB, free: 3.312 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06682/0.997, allocations: 35.14 MB / 0.671 GB, free: 15.03 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003874/1.001, allocations: 2.929 MB / 0.6739 GB, free: 12.06 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002782/1.004, allocations: 0.7699 MB / 0.6746 GB, free: 11.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003019/1.007, allocations: 1.968 MB / 0.6766 GB, free: 9.324 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/1.007, allocations: 0 / 0.6766 GB, free: 9.324 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6691/1.676, allocations: 92.43 MB / 0.7668 GB, free: 193.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.74/18.41, allocations: 0 / 0.7668 GB, free: 193.4 MB / 0.545 GB " [Timeout remaining time 641] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_DOL/IMC_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 26.450460078194737]