Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008547/0.0008548, allocations: 88.84 kB / 17.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.0009548/0.0009549, allocations: 176.9 kB / 18.86 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.075/2.075, allocations: 205.4 MB / 225 MB, free: 13.06 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.0005603/0.0005604, allocations: 16 kB / 282 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1537, allocations: 47.58 MB / 329.6 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01394/0.1677, allocations: 11.02 MB / 340.6 MB, free: 8.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008617/0.1764, allocations: 3.169 MB / 343.8 MB, free: 5.488 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00189/0.1784, allocations: 35.94 kB / 343.8 MB, free: 5.453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002499/0.1809, allocations: 0.5554 MB / 344.4 MB, free: 4.895 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003306/0.1842, allocations: 0.5818 MB / 345 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.1854, allocations: 343.7 kB / 345.3 MB, free: 3.973 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003443/0.1888, allocations: 2.121 MB / 347.4 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001449/0.1903, allocations: 0.8462 MB / 348.3 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001648/0.1919, allocations: 0.692 MB / 349 MB, free: 268 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001293/0.1932, allocations: 0.7773 MB / 349.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002311/0.1935, allocations: 104 kB / 349.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004764/0.194, allocations: 147.9 kB / 350 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002859/0.1943, allocations: 302.5 kB / 350.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00107/0.1954, allocations: 0.9032 MB / 351.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002325/0.1977, allocations: 2.103 MB / 353.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1977, allocations: 3.938 kB / 353.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1977, allocations: 4 kB / 353.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.028e-05/0.1978, allocations: 0 / 353.3 MB, free: 11.91 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003503/0.2013, allocations: 1.752 MB / 355.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/0.2014, allocations: 8.031 kB / 355.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000858/0.2022, allocations: 254.5 kB / 355.3 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/0.2039, allocations: 1.04 MB / 356.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.204, allocations: 111.5 kB / 356.5 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002329/0.2043, allocations: 163.8 kB / 356.6 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00276/0.2071, allocations: 1.487 MB / 358.1 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.379e-05/0.2071, allocations: 15.98 kB / 358.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.2073, allocations: 60 kB / 358.2 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.213e-05/0.2073, allocations: 40 kB / 358.2 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001914/0.2092, allocations: 0.9824 MB / 359.2 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008868/0.2181, allocations: 6.594 MB / 365.8 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008927/0.219, allocations: 412.2 kB / 366.2 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004696/0.2195, allocations: 230 kB / 366.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-05/0.2196, allocations: 4.438 kB / 366.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006394/0.2202, allocations: 272.8 kB / 366.7 MB, free: 13.94 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 3.316e-06/0.2202, allocations: 4 kB / 366.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003629/0.2239, allocations: 1.793 MB / 368.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000165/0.224, allocations: 162.8 kB / 368.7 MB, free: 11.85 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001864/0.2259, allocations: 1.273 MB / 369.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.499e-05/0.226, allocations: 37.7 kB / 370 MB, free: 10.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009455/0.2269, allocations: 0.8673 MB / 370.8 MB, free: 9.637 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002145/0.2272, allocations: 213.2 kB / 371 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.2273, allocations: 97.67 kB / 371.1 MB, free: 9.324 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.2275, allocations: 349.9 kB / 371.5 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004927/0.228, allocations: 234.5 kB / 371.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009929/0.229, allocations: 0.8112 MB / 372.5 MB, free: 7.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001667/0.2307, allocations: 1.134 MB / 373.7 MB, free: 6.258 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-05/0.2307, allocations: 11.98 kB / 373.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002225/0.2329, allocations: 1.181 MB / 374.8 MB, free: 5.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.813e-05/0.233, allocations: 41.69 kB / 374.9 MB, free: 4.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.213e-05/0.2331, allocations: 20 kB / 374.9 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003012/0.2334, allocations: 70.17 kB / 375 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000825/0.2342, allocations: 271.5 kB / 375.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002445/0.2367, allocations: 2.579 MB / 377.8 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/0.2378, allocations: 75.84 kB / 377.9 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.758e-05/0.2379, allocations: 60 kB / 378 MB, free: 1.66 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008533/0.2388, allocations: 365.2 kB / 378.3 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.239, allocations: 130.4 kB / 378.4 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/0.2401, allocations: 0.5607 MB / 379 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.2401, allocations: 7.938 kB / 379 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.2401, allocations: 4 kB / 379 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.2402, allocations: 3.984 kB / 379 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3351/0.5752, allocations: 1.872 MB / 380.9 MB, free: 50.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.5753, allocations: 11.75 kB / 380.9 MB, free: 50.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005095/0.5758, allocations: 105.1 kB / 381 MB, free: 50.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002255/0.5761, allocations: 47.77 kB / 381 MB, free: 50.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.024e-05/0.5761, allocations: 15.12 kB / 381.1 MB, free: 50.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001927/0.5781, allocations: 2.551 MB / 383.6 MB, free: 47.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.218e-06/0.5781, allocations: 4.188 kB / 383.6 MB, free: 47.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002389/0.5805, allocations: 0.9417 MB / 384.6 MB, free: 47.33 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005785/0.5811, allocations: 254.3 kB / 384.8 MB, free: 47.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.5812, allocations: 19.25 kB / 384.8 MB, free: 47.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005321/0.5818, allocations: 34.23 kB / 384.9 MB, free: 47.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.5819, allocations: 57.72 kB / 384.9 MB, free: 47.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-05/0.582, allocations: 18.89 kB / 384.9 MB, free: 47.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001529/0.5835, allocations: 0.845 MB / 385.8 MB, free: 47.08 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.5835, allocations: 0 / 385.8 MB, free: 47.08 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001432/0.585, allocations: 305.4 kB / 386.1 MB, free: 47.05 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.0003207/0.5853, allocations: 131.2 kB / 386.2 MB, free: 46.95 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001941/0.5872, allocations: 0.9356 MB / 387.1 MB, free: 46.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/0.5873, allocations: 1.125 kB / 387.1 MB, free: 46.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008407/0.5881, allocations: 464.5 kB / 387.6 MB, free: 46.15 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002342/0.5905, allocations: 327.4 kB / 387.9 MB, free: 46.06 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005844/0.5963, allocations: 3.298 MB / 391.2 MB, free: 43.9 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001133/0.5975, allocations: 1.184 MB / 392.4 MB, free: 43.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003243/0.5978, allocations: 92.06 kB / 392.5 MB, free: 43.15 MB / 318.1 MB Notification: Performance of SimCode: time 1.774e-06/0.5978, allocations: 0 / 392.5 MB, free: 43.15 MB / 318.1 MB Notification: Performance of Templates: time 0.05021/0.648, allocations: 31.25 MB / 423.7 MB, free: 18.63 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationaryCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationaryCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationaryCalcHelperMain.o] Error 1