Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 95.77 kB / 16.95 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 185.3 kB / 17.85 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.599/1.599, allocations: 223.2 MB / 241.8 MB, free: 316 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004031/0.0004032, allocations: 8 kB / 301.5 MB, free: 6.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1279, allocations: 50.42 MB / 351.9 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01032/0.1382, allocations: 9.112 MB / 361 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006561/0.1449, allocations: 3.028 MB / 364 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001585/0.1465, allocations: 47.81 kB / 364.1 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001796/0.1483, allocations: 0.5552 MB / 364.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002719/0.151, allocations: 0.7614 MB / 365.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000994/0.152, allocations: 259.6 kB / 365.6 MB, free: 6.199 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004384/0.1564, allocations: 3.483 MB / 369.1 MB, free: 2.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002425/0.1589, allocations: 1.747 MB / 370.9 MB, free: 0.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2649/0.4238, allocations: 1.105 MB / 372 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004677/0.4285, allocations: 1.508 MB / 373.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009403/0.4295, allocations: 164 kB / 373.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001689/0.4312, allocations: 231.8 kB / 373.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001466/0.4327, allocations: 0.8266 MB / 374.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001661/0.4344, allocations: 0.6146 MB / 375.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00769/0.4421, allocations: 4.157 MB / 379.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.4421, allocations: 0 / 379.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4421, allocations: 1.094 kB / 379.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002741/0.4424, allocations: 0.7812 kB / 379.5 MB, free: 10.75 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.01064/0.4531, allocations: 3.028 MB / 382.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.554e-05/0.4531, allocations: 8.812 kB / 382.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002469/0.4556, allocations: 355.7 kB / 382.8 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004928/0.4606, allocations: 1.795 MB / 384.6 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002608/0.4608, allocations: 192.2 kB / 384.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006226/0.4615, allocations: 260.8 kB / 385.1 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008941/0.4704, allocations: 3.535 MB / 388.6 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-05/0.4705, allocations: 4.375 kB / 388.6 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002934/0.4708, allocations: 106.8 kB / 388.7 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002193/0.4711, allocations: 113.6 kB / 388.8 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006851/0.4779, allocations: 3.103 MB / 391.9 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01863/0.4966, allocations: 10.93 MB / 402.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003905/0.5006, allocations: 3.086 MB / 406 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002299/0.5029, allocations: 1.383 MB / 407.3 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003666/0.5033, allocations: 132.2 kB / 407.5 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001889/0.5052, allocations: 1.164 MB / 408.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 3.777e-06/0.5052, allocations: 0 / 408.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.02196/0.5272, allocations: 8.911 MB / 417.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/0.5273, allocations: 176.2 kB / 417.7 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003854/0.5312, allocations: 1.822 MB / 419.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004246/0.5316, allocations: 57.7 kB / 419.6 MB, free: 15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001428/0.5331, allocations: 1.196 MB / 420.8 MB, free: 13.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000899/0.534, allocations: 0.5538 MB / 421.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.5341, allocations: 40 kB / 421.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002623/0.5344, allocations: 385.8 kB / 421.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002035/0.5364, allocations: 1.007 MB / 422.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002233/0.5387, allocations: 1.432 MB / 424.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00205/0.5408, allocations: 1.179 MB / 425.4 MB, free: 9.066 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/0.5408, allocations: 4 kB / 425.4 MB, free: 9.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006268/0.5471, allocations: 3.331 MB / 428.7 MB, free: 5.793 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.168e-05/0.5472, allocations: 12 kB / 428.7 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.148e-05/0.5472, allocations: 14.06 kB / 428.7 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002122/0.5493, allocations: 0.8864 MB / 429.6 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001511/0.5509, allocations: 335.7 kB / 430 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/0.564, allocations: 9.555 MB / 439.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002826/0.5668, allocations: 147.9 kB / 439.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004019/0.5673, allocations: 68 kB / 439.7 MB, free: 10.44 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 180 * 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,(9,33.3%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002715/0.57, allocations: 0.926 MB / 440.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009007/0.5709, allocations: 205.5 kB / 440.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006582/0.5775, allocations: 3.121 MB / 444 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.242e-05/0.5776, allocations: 16 kB / 444 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-05/0.5776, allocations: 8 kB / 444 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.5776, allocations: 11.97 kB / 444 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01506/0.5927, allocations: 6.28 MB / 450.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.645e-05/0.5927, allocations: 4 kB / 450.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009673/0.5937, allocations: 217.9 kB / 450.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002455/0.5962, allocations: 0.9173 MB / 451.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001853/0.5964, allocations: 51.97 kB / 451.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01431/0.6107, allocations: 11.01 MB / 462.5 MB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.6108, allocations: 5.219 kB / 462.5 MB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009353/0.6202, allocations: 4.523 MB / 467 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002326/0.6226, allocations: 498.5 kB / 467.5 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004664/0.6231, allocations: 43.95 kB / 467.5 MB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.6242, allocations: 123.9 kB / 467.7 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007189/0.625, allocations: 190.7 kB / 467.8 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001368/0.6251, allocations: 47.98 kB / 467.9 MB, free: 13.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002876/0.628, allocations: 1.244 MB / 469.1 MB, free: 12.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.628, allocations: 0 / 469.1 MB, free: 12.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004234/0.6322, allocations: 0.6289 MB / 469.8 MB, free: 11.86 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (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) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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,(9,33.3%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006932/0.633, allocations: 179.6 kB / 469.9 MB, free: 11.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007073/0.64, allocations: 3.262 MB / 473.2 MB, free: 8.395 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.308e-05/0.6401, allocations: 0 / 473.2 MB, free: 8.395 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004237/0.6444, allocations: 2.215 MB / 475.4 MB, free: 6.133 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003884/0.6483, allocations: 0.5498 MB / 476 MB, free: 5.594 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01391/0.6622, allocations: 6.714 MB / 482.7 MB, free: 14.83 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002325/0.6646, allocations: 2.153 MB / 484.8 MB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009781/0.6656, allocations: 139.4 kB / 485 MB, free: 12.51 MB / 398.1 MB Notification: Performance of SimCode: time 1.333e-06/0.6656, allocations: 0 / 485 MB, free: 12.51 MB / 398.1 MB Notification: Performance of Templates: time 0.4621/1.128, allocations: 102.3 MB / 0.5735 GB, free: 130.5 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YDCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YDCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YDCalcHelperMain.o] Error 1