Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 101 kB / 17.96 MB, free: 5.766 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.001242/0.001242, allocations: 177.1 kB / 18.86 MB, free: 4.906 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.155/2.155, allocations: 205.4 MB / 225.1 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.0005261/0.0005262, allocations: 12.5 kB / 282 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1518, allocations: 47.58 MB / 329.6 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01478/0.1667, allocations: 11.43 MB / 341 MB, free: 8.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009855/0.1766, allocations: 3.247 MB / 344.3 MB, free: 5.004 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002525/0.1792, allocations: 39.88 kB / 344.3 MB, free: 4.965 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002736/0.182, allocations: 0.5748 MB / 344.9 MB, free: 4.387 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003804/0.1858, allocations: 0.6206 MB / 345.5 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.1869, allocations: 355.7 kB / 345.9 MB, free: 3.414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003889/0.1908, allocations: 2.28 MB / 348.2 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001631/0.1925, allocations: 0.8505 MB / 349 MB, free: 244 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001937/0.1944, allocations: 0.7465 MB / 349.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001104/0.1955, allocations: 0.8512 MB / 350.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002009/0.1957, allocations: 108 kB / 350.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000448/0.1962, allocations: 140 kB / 350.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002935/0.1965, allocations: 322.4 kB / 351.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001075/0.1976, allocations: 0.9537 MB / 352.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002333/0.1999, allocations: 2.232 MB / 354.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.2, allocations: 0 / 354.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.2, allocations: 0 / 354.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.836e-05/0.2, allocations: 0 / 354.3 MB, free: 10.87 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003853/0.2039, allocations: 1.833 MB / 356.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.587e-05/0.204, allocations: 16.02 kB / 356.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009539/0.2049, allocations: 286.4 kB / 356.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001984/0.2069, allocations: 1.103 MB / 357.6 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.207, allocations: 119.5 kB / 357.7 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000238/0.2073, allocations: 163.8 kB / 357.8 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002942/0.2102, allocations: 1.52 MB / 359.4 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.729e-05/0.2103, allocations: 3.906 kB / 359.4 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001358/0.2104, allocations: 68 kB / 359.4 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.221e-05/0.2105, allocations: 44 kB / 359.5 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0022/0.2127, allocations: 1.076 MB / 360.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009744/0.2225, allocations: 6.308 MB / 366.9 MB, free: 13.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/0.2242, allocations: 0.6347 MB / 367.5 MB, free: 13.22 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009585/0.2252, allocations: 470.2 kB / 368 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.011e-05/0.2252, allocations: 12.56 kB / 368 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/0.2253, allocations: 43.06 kB / 368 MB, free: 12.7 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.976e-06/0.2253, allocations: 0 / 368 MB, free: 12.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.00605/0.2314, allocations: 2.47 MB / 370.5 MB, free: 10.13 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.13e-05/0.2315, allocations: 111.5 kB / 370.6 MB, free: 9.996 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/0.2335, allocations: 1.306 MB / 371.9 MB, free: 8.676 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.691e-05/0.2336, allocations: 37.7 kB / 371.9 MB, free: 8.633 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007099/0.2343, allocations: 0.8493 MB / 372.8 MB, free: 7.773 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002278/0.2345, allocations: 264.2 kB / 373 MB, free: 7.512 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.2346, allocations: 93.66 kB / 373.1 MB, free: 7.414 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.2348, allocations: 341.9 kB / 373.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005932/0.2354, allocations: 294.5 kB / 373.8 MB, free: 6.785 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.2364, allocations: 0.7538 MB / 374.5 MB, free: 5.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.2382, allocations: 1.115 MB / 375.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/0.2382, allocations: 4 kB / 375.6 MB, free: 4.488 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002727/0.2409, allocations: 1.299 MB / 376.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.251e-05/0.241, allocations: 15.94 kB / 376.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.038e-05/0.241, allocations: 16 kB / 377 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005837/0.2416, allocations: 142.7 kB / 377.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008594/0.2425, allocations: 259.6 kB / 377.4 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3343/0.5768, allocations: 4.318 MB / 381.7 MB, free: 35.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.5782, allocations: 64.44 kB / 381.7 MB, free: 35.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.377e-05/0.5783, allocations: 56.2 kB / 381.8 MB, free: 35.78 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007497/0.5791, allocations: 356.2 kB / 382.1 MB, free: 35.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001982/0.5793, allocations: 135.8 kB / 382.3 MB, free: 35.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002087/0.5814, allocations: 0.8729 MB / 383.1 MB, free: 35.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/0.5814, allocations: 11.12 kB / 383.2 MB, free: 35.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.5814, allocations: 4.656 kB / 383.2 MB, free: 35.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.5814, allocations: 2.578 kB / 383.2 MB, free: 35.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004565/0.586, allocations: 2.373 MB / 385.5 MB, free: 35.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.586, allocations: 3.594 kB / 385.5 MB, free: 35.1 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005744/0.5866, allocations: 129.9 kB / 385.7 MB, free: 35.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004716/0.5871, allocations: 143.1 kB / 385.8 MB, free: 35.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.716e-05/0.5871, allocations: 24.3 kB / 385.8 MB, free: 35.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003668/0.5908, allocations: 4.456 MB / 390.3 MB, free: 31.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.5908, allocations: 4.375 kB / 390.3 MB, free: 31.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003056/0.5939, allocations: 1.354 MB / 391.6 MB, free: 30.95 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006009/0.5945, allocations: 278.5 kB / 391.9 MB, free: 30.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.5947, allocations: 17.84 kB / 391.9 MB, free: 30.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006166/0.5953, allocations: 45.39 kB / 392 MB, free: 30.85 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.5955, allocations: 67.86 kB / 392 MB, free: 30.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.258e-05/0.5956, allocations: 22.75 kB / 392.1 MB, free: 30.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001668/0.5972, allocations: 0.8797 MB / 392.9 MB, free: 30.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5973, allocations: 0 / 392.9 MB, free: 30.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00185/0.5991, allocations: 328.3 kB / 393.3 MB, free: 30.73 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003088/0.5994, allocations: 136 kB / 393.4 MB, free: 30.64 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002283/0.6017, allocations: 1.139 MB / 394.5 MB, free: 30.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.6017, allocations: 3.75 kB / 394.5 MB, free: 30.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001086/0.6028, allocations: 0.7157 MB / 395.3 MB, free: 29.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002402/0.6052, allocations: 355.2 kB / 395.6 MB, free: 29.9 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005808/0.6111, allocations: 3.802 MB / 399.4 MB, free: 27.7 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009201/0.612, allocations: 1.215 MB / 400.6 MB, free: 26.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003385/0.6124, allocations: 98.86 kB / 400.7 MB, free: 26.95 MB / 318.1 MB Notification: Performance of SimCode: time 7.61e-07/0.6124, allocations: 0 / 400.7 MB, free: 26.95 MB / 318.1 MB Notification: Performance of Templates: time 0.04727/0.6596, allocations: 40.62 MB / 441.3 MB, free: 7.559 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLossesCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLossesCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLossesCalcHelperMain.o] Error 1