Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.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_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001146/0.001146, allocations: 197.6 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 226.5 MB / 244.3 MB, free: 6.582 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008025/0.0008025, allocations: 95.58 kB / 296.4 MB, free: 6.793 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002653/0.0002654, allocations: 4 kB / 356.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.2141, allocations: 51.3 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz): time 0.006652/0.2208, allocations: 8.583 MB / 416.1 MB, free: 19.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004636/0.2255, allocations: 2.891 MB / 419 MB, free: 16.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001175/0.2267, allocations: 43.81 kB / 419 MB, free: 16.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001458/0.2282, allocations: 0.5087 MB / 419.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001986/0.2302, allocations: 0.6369 MB / 420.2 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007162/0.2309, allocations: 239.7 kB / 420.4 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002046/0.2329, allocations: 2.464 MB / 422.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0012/0.2342, allocations: 1.228 MB / 424.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001346/0.2355, allocations: 0.8404 MB / 424.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0012/0.2367, allocations: 1.082 MB / 426 MB, free: 9.211 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002089/0.237, allocations: 127.9 kB / 426.1 MB, free: 9.086 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005427/0.2375, allocations: 199.8 kB / 426.3 MB, free: 8.891 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004711/0.238, allocations: 0.5841 MB / 426.9 MB, free: 8.305 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003917/0.2384, allocations: 460.5 kB / 427.4 MB, free: 7.848 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001736/0.2401, allocations: 2.91 MB / 430.3 MB, free: 4.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2401, allocations: 0 / 430.3 MB, free: 4.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.2402, allocations: 7.984 kB / 430.3 MB, free: 4.922 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.228e-05/0.2402, allocations: 0 / 430.3 MB, free: 4.922 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: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.003441/0.2437, allocations: 2.209 MB / 432.5 MB, free: 2.656 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.2437, allocations: 12.03 kB / 432.5 MB, free: 2.645 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007433/0.2445, allocations: 281 kB / 432.8 MB, free: 2.367 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001788/0.2463, allocations: 1.271 MB / 434.1 MB, free: 1.039 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.792e-05/0.2463, allocations: 143.8 kB / 434.2 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002191/0.2466, allocations: 203.9 kB / 434.4 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003753/0.2503, allocations: 2.399 MB / 436.8 MB, free: 14.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.924e-05/0.2504, allocations: 7.906 kB / 436.8 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001734/0.2506, allocations: 79.91 kB / 436.9 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.232e-05/0.2507, allocations: 87.69 kB / 437 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003124/0.2538, allocations: 1.955 MB / 438.9 MB, free: 12.13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01137/0.2652, allocations: 7.875 MB / 446.8 MB, free: 4.016 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.2668, allocations: 1.231 MB / 448 MB, free: 2.738 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001588/0.2684, allocations: 0.9595 MB / 449 MB, free: 1.781 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002102/0.2686, allocations: 118.1 kB / 449.1 MB, free: 1.648 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.2687, allocations: 47.56 kB / 449.1 MB, free: 1.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=95): time 3.056e-06/0.2687, allocations: 0 / 449.1 MB, free: 1.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.01209/0.2808, allocations: 5.919 MB / 455.1 MB, free: 11.53 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.2809, allocations: 64.41 kB / 455.1 MB, free: 11.45 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00176/0.2826, allocations: 1.294 MB / 456.4 MB, free: 10.15 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.436e-05/0.2827, allocations: 41.7 kB / 456.5 MB, free: 10.11 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006043/0.2833, allocations: 0.9199 MB / 457.4 MB, free: 9.172 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000283/0.2836, allocations: 390.4 kB / 457.8 MB, free: 8.785 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.224e-05/0.2837, allocations: 28 kB / 457.8 MB, free: 8.758 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.2838, allocations: 357.9 kB / 458.1 MB, free: 8.402 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009232/0.2848, allocations: 0.6403 MB / 458.8 MB, free: 7.762 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.2859, allocations: 1 MB / 459.8 MB, free: 6.609 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.2871, allocations: 0.7916 MB / 460.6 MB, free: 5.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.2871, allocations: 0 / 460.6 MB, free: 5.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003779/0.2909, allocations: 2.241 MB / 462.8 MB, free: 3.559 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.2909, allocations: 12 kB / 462.8 MB, free: 3.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.291, allocations: 8 kB / 462.8 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001199/0.2922, allocations: 0.4963 MB / 463.3 MB, free: 3.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.2932, allocations: 303.5 kB / 463.6 MB, free: 2.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006572/0.2998, allocations: 6.532 MB / 470.2 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.3009, allocations: 79.92 kB / 470.2 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.722e-05/0.3011, allocations: 56 kB / 470.3 MB, free: 11.66 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(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,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001104/0.3022, allocations: 0.6028 MB / 470.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002477/0.3024, allocations: 146.2 kB / 471 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003255/0.3057, allocations: 1.968 MB / 473 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/0.3057, allocations: 8 kB / 473 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.3057, allocations: 8 kB / 473 MB, free: 8.891 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.3057, allocations: 3.984 kB / 473 MB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006389/0.3121, allocations: 4.136 MB / 477.2 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.3122, allocations: 4 kB / 477.2 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007741/0.3129, allocations: 183.8 kB / 477.3 MB, free: 4.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001373/0.3143, allocations: 0.5463 MB / 477.9 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.636e-05/0.3144, allocations: 27.98 kB / 477.9 MB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00793/0.3223, allocations: 8.049 MB / 486 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3224, allocations: 0 / 486 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004624/0.327, allocations: 2.853 MB / 488.8 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007271/0.3278, allocations: 359.1 kB / 489.2 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.328, allocations: 31.98 kB / 489.2 MB, free: 7.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007195/0.3287, allocations: 67.92 kB / 489.3 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.3289, allocations: 92.91 kB / 489.4 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.827e-05/0.329, allocations: 28 kB / 489.4 MB, free: 7.797 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001312/0.3303, allocations: 0.8838 MB / 490.3 MB, free: 6.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3303, allocations: 0 / 490.3 MB, free: 6.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00145/0.3317, allocations: 443.9 kB / 490.7 MB, free: 6.477 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 8,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003152/0.3321, allocations: 151.5 kB / 490.9 MB, free: 6.324 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003335/0.3354, allocations: 2.229 MB / 493.1 MB, free: 4.016 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3354, allocations: 0 / 493.1 MB, free: 4.016 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002176/0.3376, allocations: 1.506 MB / 494.6 MB, free: 2.438 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/0.3395, allocations: 404.1 kB / 495 MB, free: 2.055 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006671/0.3462, allocations: 4.973 MB / 500 MB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001224/0.3474, allocations: 1.634 MB / 0.4898 GB, free: 11.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.3478, allocations: 107.4 kB / 0.4899 GB, free: 11.25 MB / 378.7 MB Notification: Performance of SimCode: time 1.293e-06/0.3478, allocations: 0 / 0.4899 GB, free: 11.25 MB / 378.7 MB Notification: Performance of Templates: time 0.228/0.5758, allocations: 70.42 MB / 0.5587 GB, free: 40.4 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches