Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002585/0.002585, allocations: 196.6 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 226.6 MB / 244.3 MB, free: 8.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000726/0.0007262, allocations: 104.9 kB / 296.4 MB, free: 7.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000228/0.000228, allocations: 12 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2192, allocations: 51.28 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.006976/0.2262, allocations: 8.564 MB / 416.1 MB, free: 19.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005596/0.2319, allocations: 3.501 MB / 419.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.233, allocations: 43.75 kB / 419.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001331/0.2343, allocations: 0.5398 MB / 420.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001589/0.2359, allocations: 0.7422 MB / 420.9 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007743/0.2367, allocations: 319.5 kB / 421.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001907/0.2386, allocations: 2.717 MB / 423.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001211/0.2398, allocations: 1.331 MB / 425.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001134/0.241, allocations: 0.9259 MB / 426.2 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001276/0.2423, allocations: 1.323 MB / 427.5 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002277/0.2425, allocations: 136 kB / 427.6 MB, free: 7.629 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007219/0.2432, allocations: 351.7 kB / 428 MB, free: 7.285 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004991/0.2437, allocations: 0.7866 MB / 428.8 MB, free: 6.496 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004271/0.2442, allocations: 0.5158 MB / 429.3 MB, free: 5.973 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002013/0.2462, allocations: 3.389 MB / 432.7 MB, free: 2.574 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.2462, allocations: 4 kB / 432.7 MB, free: 2.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2462, allocations: 0 / 432.7 MB, free: 2.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.874e-05/0.2463, allocations: 0 / 432.7 MB, free: 2.57 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.004094/0.2504, allocations: 2.749 MB / 435.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.2504, allocations: 11.97 kB / 435.4 MB, free: 15.74 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.2515, allocations: 368.3 kB / 435.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002574/0.254, allocations: 1.584 MB / 437.4 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.2542, allocations: 152 kB / 437.5 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002952/0.2545, allocations: 211.9 kB / 437.7 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005017/0.2595, allocations: 2.69 MB / 440.4 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.846e-05/0.2596, allocations: 4 kB / 440.4 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001956/0.2598, allocations: 80 kB / 440.5 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001146/0.2599, allocations: 99.92 kB / 440.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00404/0.2639, allocations: 2.291 MB / 442.9 MB, free: 8.141 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01289/0.2769, allocations: 8.268 MB / 451.2 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002853/0.2797, allocations: 1.644 MB / 452.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00178/0.2816, allocations: 1.093 MB / 453.9 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002516/0.2818, allocations: 123.2 kB / 454 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.2819, allocations: 43.56 kB / 454.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 4.408e-06/0.2819, allocations: 3.984 kB / 454.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01308/0.295, allocations: 6.51 MB / 460.6 MB, free: 6.023 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.034e-05/0.2951, allocations: 68.72 kB / 460.6 MB, free: 5.941 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003363/0.2984, allocations: 2.157 MB / 462.8 MB, free: 3.738 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000137/0.2986, allocations: 49.64 kB / 462.9 MB, free: 3.684 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008319/0.2994, allocations: 1.108 MB / 464 MB, free: 2.562 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003753/0.2998, allocations: 457.3 kB / 464.4 MB, free: 2.109 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.433e-05/0.2999, allocations: 31.98 kB / 464.4 MB, free: 2.078 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3001, allocations: 361.9 kB / 464.8 MB, free: 1.719 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/0.3014, allocations: 0.7691 MB / 465.6 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.3028, allocations: 1.025 MB / 466.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/0.3043, allocations: 0.9003 MB / 467.5 MB, free: 14.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.3043, allocations: 4 kB / 467.5 MB, free: 14.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00512/0.3094, allocations: 2.769 MB / 470.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.854e-05/0.3095, allocations: 11.95 kB / 470.3 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.3095, allocations: 8.188 kB / 470.3 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001999/0.3115, allocations: 0.7851 MB / 471.1 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.3126, allocations: 275.6 kB / 471.3 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01219/0.3248, allocations: 8.731 MB / 480.1 MB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002016/0.3269, allocations: 95.89 kB / 480.2 MB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002597/0.3272, allocations: 51.98 kB / 480.2 MB, free: 1.918 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002101/0.3293, allocations: 0.7473 MB / 481 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007522/0.3301, allocations: 201.5 kB / 481.1 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008947/0.339, allocations: 2.505 MB / 483.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.361e-05/0.3391, allocations: 16 kB / 483.7 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.938e-05/0.3392, allocations: 11.95 kB / 483.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.203e-05/0.3392, allocations: 7.969 kB / 483.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01739/0.3566, allocations: 4.964 MB / 488.7 MB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/0.3567, allocations: 4 kB / 488.7 MB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002154/0.3588, allocations: 219.9 kB / 488.9 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003446/0.3623, allocations: 0.6541 MB / 489.5 MB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001877/0.3625, allocations: 31.97 kB / 489.6 MB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01575/0.3783, allocations: 7.931 MB / 497.5 MB, free: 100 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.3783, allocations: 0 / 497.5 MB, free: 100 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0117/0.3901, allocations: 3.558 MB / 0.4893 GB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001868/0.392, allocations: 446.4 kB / 0.4897 GB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006207/0.3926, allocations: 31.95 kB / 0.4898 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00212/0.3948, allocations: 99.89 kB / 0.4899 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004145/0.3952, allocations: 96.84 kB / 0.4899 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001812/0.3954, allocations: 39.92 kB / 0.49 GB, free: 11.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00447/0.3999, allocations: 1.52 MB / 0.4915 GB, free: 10.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4, allocations: 0 / 0.4915 GB, free: 10.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003529/0.4035, allocations: 0.5274 MB / 0.492 GB, free: 9.699 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001779/0.4053, allocations: 432.1 kB / 0.4924 GB, free: 9.383 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008018/0.4133, allocations: 2.393 MB / 0.4947 GB, free: 6.965 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.044e-06/0.4134, allocations: 0 / 0.4947 GB, free: 6.965 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004857/0.4182, allocations: 1.601 MB / 0.4963 GB, free: 5.305 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004308/0.4226, allocations: 440 kB / 0.4967 GB, free: 4.875 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2289/0.6515, allocations: 6.073 MB / 0.5026 GB, free: 90.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001721/0.6532, allocations: 1.939 MB / 0.5045 GB, free: 90.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006243/0.6539, allocations: 136.4 kB / 0.5047 GB, free: 90.03 MB / 378.7 MB Notification: Performance of SimCode: time 1.011e-06/0.6539, allocations: 0 / 0.5047 GB, free: 90.03 MB / 378.7 MB Notification: Performance of Templates: time 0.0572/0.7111, allocations: 63.57 MB / 0.5668 GB, free: 34.73 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches