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.0009134/0.0009135, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 226.5 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000774/0.000774, allocations: 99.73 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002326/0.0002326, allocations: 11.98 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.1997, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.00647/0.2062, allocations: 8.568 MB / 416.6 MB, free: 19.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004902/0.2111, allocations: 3.501 MB / 420.1 MB, free: 15.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001225/0.2124, allocations: 43.81 kB / 420.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001444/0.2139, allocations: 0.5359 MB / 420.7 MB, free: 15.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001862/0.2157, allocations: 0.7617 MB / 421.5 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008151/0.2166, allocations: 327.4 kB / 421.8 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002104/0.2187, allocations: 2.752 MB / 424.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001433/0.2201, allocations: 1.536 MB / 426.1 MB, free: 9.559 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.2212, allocations: 0.926 MB / 427 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001251/0.2225, allocations: 1.323 MB / 428.3 MB, free: 7.301 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002254/0.2227, allocations: 132 kB / 428.4 MB, free: 7.172 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007566/0.2235, allocations: 415.5 kB / 428.9 MB, free: 6.766 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005219/0.224, allocations: 0.7905 MB / 429.6 MB, free: 5.973 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001073/0.2251, allocations: 1.23 MB / 430.9 MB, free: 4.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002118/0.2272, allocations: 3.409 MB / 434.3 MB, free: 1.312 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.2272, allocations: 0 / 434.3 MB, free: 1.312 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2273, allocations: 0 / 434.3 MB, free: 1.312 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.586e-05/0.2273, allocations: 4 kB / 434.3 MB, free: 1.309 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.004395/0.2317, allocations: 2.706 MB / 437 MB, free: 14.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.2318, allocations: 8.031 kB / 437 MB, free: 14.53 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001025/0.2328, allocations: 365.2 kB / 437.4 MB, free: 14.17 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0026/0.2354, allocations: 1.666 MB / 439 MB, free: 12.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.2355, allocations: 152 kB / 439.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002941/0.2358, allocations: 211.9 kB / 439.4 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004547/0.2404, allocations: 2.686 MB / 442.1 MB, free: 9.324 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.432e-05/0.2405, allocations: 4 kB / 442.1 MB, free: 9.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001884/0.2407, allocations: 80 kB / 442.1 MB, free: 9.242 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000113/0.2408, allocations: 99.92 kB / 442.2 MB, free: 9.145 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004001/0.2448, allocations: 2.291 MB / 444.5 MB, free: 6.852 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01301/0.2578, allocations: 8.279 MB / 452.8 MB, free: 14.37 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002869/0.2607, allocations: 1.64 MB / 454.5 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/0.2626, allocations: 1.097 MB / 455.6 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002505/0.2629, allocations: 134 kB / 455.7 MB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/0.2629, allocations: 47.56 kB / 455.7 MB, free: 11.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 3.306e-06/0.2629, allocations: 0 / 455.7 MB, free: 11.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01298/0.2759, allocations: 6.504 MB / 462.2 MB, free: 4.715 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.276, allocations: 64.72 kB / 462.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002896/0.2789, allocations: 2.161 MB / 464.5 MB, free: 2.434 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001583/0.2791, allocations: 53.64 kB / 464.5 MB, free: 2.375 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008197/0.2799, allocations: 1.104 MB / 465.6 MB, free: 1.258 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003812/0.2803, allocations: 457.3 kB / 466.1 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.651e-05/0.2804, allocations: 31.98 kB / 466.1 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.2805, allocations: 361.9 kB / 466.4 MB, free: 424 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/0.2818, allocations: 0.7691 MB / 467.2 MB, free: 15.64 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001482/0.2833, allocations: 1.025 MB / 468.2 MB, free: 14.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002852/0.2862, allocations: 1.869 MB / 470.1 MB, free: 12.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.2862, allocations: 0 / 470.1 MB, free: 12.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005196/0.2914, allocations: 2.776 MB / 472.9 MB, free: 9.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.2915, allocations: 7.938 kB / 472.9 MB, free: 9.762 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.2915, allocations: 12.25 kB / 472.9 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001974/0.2935, allocations: 0.7773 MB / 473.7 MB, free: 8.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.2947, allocations: 279.6 kB / 474 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.3057, allocations: 8.744 MB / 482.7 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.3071, allocations: 99.83 kB / 482.8 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.3072, allocations: 47.94 kB / 482.8 MB, free: 15.54 MB / 362.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.001482/0.3087, allocations: 0.7434 MB / 483.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004999/0.3092, allocations: 201.5 kB / 483.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004465/0.3137, allocations: 2.508 MB / 486.3 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.858e-05/0.3137, allocations: 19.98 kB / 486.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.3138, allocations: 8 kB / 486.3 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.3138, allocations: 3.984 kB / 486.3 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008538/0.3223, allocations: 4.971 MB / 491.3 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.3224, allocations: 0 / 491.3 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.3234, allocations: 223.9 kB / 491.5 MB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001692/0.3251, allocations: 0.6418 MB / 492.2 MB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.3252, allocations: 31.98 kB / 492.2 MB, free: 6.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008461/0.3337, allocations: 7.942 MB / 0.4884 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.3337, allocations: 4.031 kB / 0.4884 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005918/0.3397, allocations: 3.561 MB / 0.4919 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009672/0.3407, allocations: 450.3 kB / 0.4923 GB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003728/0.341, allocations: 27.98 kB / 0.4923 GB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.3421, allocations: 95.91 kB / 0.4924 GB, free: 9.523 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002766/0.3424, allocations: 100.8 kB / 0.4925 GB, free: 9.422 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.3425, allocations: 43.97 kB / 0.4926 GB, free: 9.379 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002434/0.3449, allocations: 1.516 MB / 0.4941 GB, free: 7.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3449, allocations: 0 / 0.4941 GB, free: 7.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002053/0.347, allocations: 0.5235 MB / 0.4946 GB, free: 7.316 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.001083/0.3481, allocations: 472.9 kB / 0.495 GB, free: 6.973 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00424/0.3524, allocations: 2.389 MB / 0.4974 GB, free: 4.562 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.3524, allocations: 8.062 kB / 0.4974 GB, free: 4.555 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002506/0.3549, allocations: 1.601 MB / 0.4989 GB, free: 2.895 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002489/0.3574, allocations: 423.1 kB / 0.4993 GB, free: 2.477 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1627/0.5201, allocations: 6.08 MB / 0.5053 GB, free: 90.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001657/0.5219, allocations: 1.937 MB / 0.5072 GB, free: 89.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006657/0.5225, allocations: 140.9 kB / 0.5073 GB, free: 89.36 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/0.5226, allocations: 0 / 0.5073 GB, free: 89.36 MB / 378.7 MB Notification: Performance of Templates: time 0.05679/0.5793, allocations: 63.59 MB / 0.5694 GB, free: 32.85 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