Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 101.5 kB / 17.8 MB, free: 5.676 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.001572/0.001572, allocations: 194 kB / 18.72 MB, free: 4.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.159/2.159, allocations: 205.1 MB / 224.6 MB, free: 12.48 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 52.27 kB / 280.6 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1586, allocations: 46.64 MB / 327.3 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01197/0.1706, allocations: 8.104 MB / 335.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008056/0.1788, allocations: 2.704 MB / 338.1 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002488/0.1814, allocations: 27.94 kB / 338.1 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003158/0.1846, allocations: 485.3 kB / 338.6 MB, free: 9.52 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003374/0.1881, allocations: 369.3 kB / 338.9 MB, free: 9.156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001688/0.1898, allocations: 307.8 kB / 339.2 MB, free: 8.855 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003569/0.1934, allocations: 1.433 MB / 340.7 MB, free: 7.414 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001818/0.1952, allocations: 0.5369 MB / 341.2 MB, free: 6.852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001707/0.1969, allocations: 0.5015 MB / 341.7 MB, free: 6.348 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00151/0.1985, allocations: 0.5713 MB / 342.3 MB, free: 5.773 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005433/0.199, allocations: 84 kB / 342.4 MB, free: 5.691 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009545/0.2, allocations: 120 kB / 342.5 MB, free: 5.574 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004991/0.2005, allocations: 242.8 kB / 342.7 MB, free: 5.336 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001705/0.2022, allocations: 0.61 MB / 343.3 MB, free: 4.723 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002445/0.2047, allocations: 1.36 MB / 344.7 MB, free: 3.359 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.062e-05/0.2047, allocations: 0 / 344.7 MB, free: 3.359 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2047, allocations: 0 / 344.7 MB, free: 3.359 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001138/0.2049, allocations: 4 kB / 344.7 MB, free: 3.355 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.00429/0.2092, allocations: 1.511 MB / 346.2 MB, free: 1.789 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.292e-05/0.2092, allocations: 15.97 kB / 346.2 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007615/0.21, allocations: 191.2 kB / 346.4 MB, free: 1.586 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001465/0.2115, allocations: 0.7782 MB / 347.2 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.459e-05/0.2116, allocations: 78.12 kB / 347.2 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/0.2118, allocations: 100 kB / 347.3 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001816/0.2136, allocations: 0.9497 MB / 348.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.641e-05/0.2136, allocations: 7.906 kB / 348.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.515e-05/0.2137, allocations: 40 kB / 348.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.2138, allocations: 24 kB / 348.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.2151, allocations: 0.6402 MB / 349 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006595/0.2217, allocations: 4.123 MB / 353.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.2228, allocations: 427 kB / 353.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003129/0.2231, allocations: 165.4 kB / 353.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.689e-05/0.2232, allocations: 7.75 kB / 353.7 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.26e-05/0.2232, allocations: 38.56 kB / 353.8 MB, free: 9.898 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 7.073e-06/0.2232, allocations: 0 / 353.8 MB, free: 9.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003064/0.2263, allocations: 1.325 MB / 355.1 MB, free: 8.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.608e-05/0.2264, allocations: 106.8 kB / 355.2 MB, free: 8.371 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/0.2278, allocations: 0.9018 MB / 356.1 MB, free: 7.445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.706e-05/0.2279, allocations: 29.7 kB / 356.1 MB, free: 7.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000496/0.2284, allocations: 0.5914 MB / 356.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.2285, allocations: 157.9 kB / 356.9 MB, free: 6.652 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/0.2287, allocations: 130.5 kB / 357 MB, free: 6.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002292/0.229, allocations: 337.9 kB / 357.3 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003744/0.2294, allocations: 176.8 kB / 357.5 MB, free: 6.008 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008235/0.2302, allocations: 489.7 kB / 358 MB, free: 5.383 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001181/0.2314, allocations: 0.687 MB / 358.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2314, allocations: 0 / 358.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001447/0.2329, allocations: 0.7543 MB / 359.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.358e-05/0.2329, allocations: 8 kB / 359.4 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/0.2329, allocations: 12 kB / 359.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002106/0.2331, allocations: 36.84 kB / 359.5 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005684/0.2337, allocations: 172 kB / 359.6 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/0.235, allocations: 1.288 MB / 360.9 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007368/0.2357, allocations: 40.05 kB / 361 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.863e-05/0.2358, allocations: 40 kB / 361 MB, free: 2.062 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000811/0.2367, allocations: 346.1 kB / 361.3 MB, free: 1.719 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006012/0.2373, allocations: 481.7 kB / 361.8 MB, free: 1.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009445/0.2382, allocations: 0.66 MB / 362.5 MB, free: 304 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.517e-06/0.2382, allocations: 4 kB / 362.5 MB, free: 300 kB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001311/0.2396, allocations: 0.723 MB / 363.2 MB, free: 15.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.2396, allocations: 8.906 kB / 363.2 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.2396, allocations: 12 kB / 363.2 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000139/0.2398, allocations: 32.86 kB / 363.2 MB, free: 15.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005291/0.2403, allocations: 163.7 kB / 363.4 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001176/0.2415, allocations: 1.307 MB / 364.7 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007431/0.2422, allocations: 31.89 kB / 364.7 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.818e-05/0.2423, allocations: 36 kB / 364.8 MB, free: 13.84 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003254/0.2426, allocations: 232 kB / 365 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001609/0.2428, allocations: 90.97 kB / 365.1 MB, free: 13.51 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.2438, allocations: 447 kB / 365.5 MB, free: 13.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.2439, allocations: 4 kB / 365.5 MB, free: 13.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.2439, allocations: 0 / 365.5 MB, free: 13.06 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.2439, allocations: 0 / 365.5 MB, free: 13.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002379/0.2463, allocations: 1.382 MB / 366.9 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.2463, allocations: 4.219 kB / 366.9 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003545/0.2466, allocations: 83.89 kB / 367 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000122/0.2468, allocations: 20.84 kB / 367 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.45e-05/0.2468, allocations: 15.94 kB / 367 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001187/0.248, allocations: 1.264 MB / 368.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.248, allocations: 7.969 kB / 368.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.2493, allocations: 0.717 MB / 369 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003661/0.2496, allocations: 200 kB / 369.2 MB, free: 9.098 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.2498, allocations: 15.98 kB / 369.2 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004251/0.2502, allocations: 23.98 kB / 369.3 MB, free: 9.059 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.378e-05/0.2503, allocations: 31.89 kB / 369.3 MB, free: 9.027 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.2503, allocations: 12 kB / 369.3 MB, free: 9.016 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009552/0.2513, allocations: 0.6095 MB / 369.9 MB, free: 8.395 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2513, allocations: 0 / 369.9 MB, free: 8.395 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001641/0.2529, allocations: 356 kB / 370.3 MB, free: 8.047 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000362/0.2533, allocations: 115.1 kB / 370.4 MB, free: 7.926 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002168/0.2555, allocations: 0.9668 MB / 371.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.769e-06/0.2555, allocations: 4 kB / 371.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004618/0.256, allocations: 287.3 kB / 371.6 MB, free: 6.641 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.2575, allocations: 219.6 kB / 371.8 MB, free: 6.426 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004324/0.2618, allocations: 2.304 MB / 374.1 MB, free: 4.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008056/0.2627, allocations: 1.025 MB / 375.2 MB, free: 3.008 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/0.2629, allocations: 59.44 kB / 375.2 MB, free: 2.949 MB / 318.1 MB Notification: Performance of SimCode: time 1.122e-06/0.2629, allocations: 0 / 375.2 MB, free: 2.949 MB / 318.1 MB Notification: Performance of Templates: time 0.3349/0.5978, allocations: 16.83 MB / 392.1 MB, free: 45.6 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlledCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlledCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlledCalcHelperMain.o] Error 1