Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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/Modelica 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/HanserModelica 2.0.0/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 100.5 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.584/1.584, allocations: 223.3 MB / 239.7 MB, free: 5.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001511/0.001511, allocations: 184.5 kB / 290.9 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03313/0.03313, allocations: 8.785 MB / 350.8 MB, free: 4.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004178/0.0004178, allocations: 14.38 kB / 413.8 MB, free: 43.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1341, allocations: 52.55 MB / 466.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02913/0.1632, allocations: 25.01 MB / 491.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02181/0.1851, allocations: 7.783 MB / 499.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008013/0.1932, allocations: 191.4 kB / 499.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007709/0.2009, allocations: 1.359 MB / 0.489 GB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0137/0.2147, allocations: 2.296 MB / 0.4912 GB, free: 8.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006004/0.2207, allocations: 1.224 MB / 0.4924 GB, free: 7.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02155/0.2423, allocations: 10.89 MB / 0.503 GB, free: 12.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04133/0.2837, allocations: 17.36 MB / 0.52 GB, free: 11.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01022/0.2939, allocations: 3.847 MB / 0.5237 GB, free: 7.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01007/0.304, allocations: 4.397 MB / 0.528 GB, free: 2.926 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003104/0.3072, allocations: 0.5977 MB / 0.5286 GB, free: 2.328 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006161/0.3134, allocations: 0.9332 MB / 0.5295 GB, free: 1.395 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3188/0.6322, allocations: 1.801 MB / 0.5313 GB, free: 20.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00695/0.6392, allocations: 1.964 MB / 0.5332 GB, free: 20.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02942/0.6687, allocations: 17.39 MB / 0.5502 GB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.347e-06/0.6688, allocations: 1.188 kB / 0.5502 GB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.6688, allocations: 0 / 0.5502 GB, free: 15.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0009108/0.6697, allocations: 0 / 0.5502 GB, free: 15.84 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.03403/0.7037, allocations: 9.894 MB / 0.5599 GB, free: 10.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.7038, allocations: 13.66 kB / 0.5599 GB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03117/0.735, allocations: 5.631 MB / 0.5654 GB, free: 8.727 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01502/0.75, allocations: 6.064 MB / 0.5713 GB, free: 7.109 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007425/0.7508, allocations: 0.7078 MB / 0.572 GB, free: 7.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005066/0.7559, allocations: 0.9315 MB / 0.5729 GB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04874/0.8047, allocations: 15 MB / 0.5875 GB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004065/0.8051, allocations: 22.25 kB / 0.5876 GB, free: 3.082 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004588/0.8097, allocations: 392.2 kB / 0.5879 GB, free: 3.004 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005928/0.8104, allocations: 0.5117 MB / 0.5884 GB, free: 2.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03984/0.8502, allocations: 13.65 MB / 0.6018 GB, free: 9.566 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1074/0.9576, allocations: 47.96 MB / 0.6486 GB, free: 9.258 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02359/0.9813, allocations: 28.73 MB / 0.6767 GB, free: 8.809 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005113/0.9864, allocations: 2.883 MB / 0.6795 GB, free: 5.914 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003938/0.9868, allocations: 233.8 kB / 0.6797 GB, free: 5.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.06e-05/0.9869, allocations: 73.23 kB / 0.6798 GB, free: 5.582 MB / 462.1 MB Notification: Performance of pre-optimization done (n=372): time 5.15e-06/0.9869, allocations: 4 kB / 0.6798 GB, free: 5.578 MB / 462.1 MB Notification: Performance of matching and sorting (n=380): time 0.03621/1.023, allocations: 15.61 MB / 0.695 GB, free: 5.902 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/1.023, allocations: 91.38 kB / 0.6951 GB, free: 5.801 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00673/1.03, allocations: 3.726 MB / 0.6987 GB, free: 2.086 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008666/1.031, allocations: 85.7 kB / 0.6988 GB, free: 1.996 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003413/1.034, allocations: 4.078 MB / 0.7028 GB, free: 13.89 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001892/1.036, allocations: 1.311 MB / 0.7041 GB, free: 12.59 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003478/1.037, allocations: 123.8 kB / 0.7042 GB, free: 12.48 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000463/1.037, allocations: 0.5462 MB / 0.7047 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005102/1.042, allocations: 2.545 MB / 0.7072 GB, free: 9.371 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006663/1.049, allocations: 5.023 MB / 0.7121 GB, free: 3.219 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3298/1.379, allocations: 3.734 MB / 0.7158 GB, free: 168.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000146/1.379, allocations: 28.84 kB / 0.7158 GB, free: 168.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.02206/1.401, allocations: 8.558 MB / 0.7242 GB, free: 167.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.474e-05/1.401, allocations: 40.31 kB / 0.7242 GB, free: 167.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002035/1.401, allocations: 82.38 kB / 0.7243 GB, free: 167.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002286/1.404, allocations: 0.8666 MB / 0.7251 GB, free: 167.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005286/1.409, allocations: 1.354 MB / 0.7264 GB, free: 167.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01232/1.421, allocations: 8.352 MB / 0.7346 GB, free: 161.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006227/1.428, allocations: 333.1 kB / 0.7349 GB, free: 161.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001563/1.429, allocations: 300.6 kB / 0.7352 GB, free: 161.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,65.6%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01157/1.441, allocations: 3.513 MB / 0.7386 GB, free: 160.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001331/1.442, allocations: 410 kB / 0.739 GB, free: 160.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/1.452, allocations: 5.838 MB / 0.7447 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.139e-05/1.452, allocations: 42.66 kB / 0.7448 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.405e-05/1.452, allocations: 11.62 kB / 0.7448 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.632e-05/1.452, allocations: 19.08 kB / 0.7448 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03027/1.483, allocations: 14.74 MB / 0.7592 GB, free: 148.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.213e-05/1.483, allocations: 4.375 kB / 0.7592 GB, free: 148.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002599/1.485, allocations: 0.668 MB / 0.7598 GB, free: 147.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/1.487, allocations: 0.7079 MB / 0.7605 GB, free: 147 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003995/1.488, allocations: 79.89 kB / 0.7606 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008389/1.496, allocations: 7.406 MB / 0.7678 GB, free: 139.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/1.496, allocations: 4 kB / 0.7679 GB, free: 139.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01286/1.509, allocations: 8.429 MB / 0.7761 GB, free: 131.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002592/1.512, allocations: 0.8901 MB / 0.777 GB, free: 130.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/1.513, allocations: 72 kB / 0.777 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002188/1.515, allocations: 183.7 kB / 0.7772 GB, free: 130.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005227/1.515, allocations: 254.8 kB / 0.7774 GB, free: 129.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002104/1.516, allocations: 104 kB / 0.7775 GB, free: 129.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005277/1.521, allocations: 2.501 MB / 0.78 GB, free: 127.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.521, allocations: 0 / 0.78 GB, free: 127.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009737/1.531, allocations: 1.554 MB / 0.7815 GB, free: 125.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.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 (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000984/1.532, allocations: 247.5 kB / 0.7817 GB, free: 125.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01058/1.542, allocations: 6.497 MB / 0.7881 GB, free: 119 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/1.542, allocations: 0 / 0.7881 GB, free: 119 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004654/1.547, allocations: 2.946 MB / 0.791 GB, free: 116 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00612/1.553, allocations: 0.9313 MB / 0.7919 GB, free: 115.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03149/1.585, allocations: 18.66 MB / 0.8101 GB, free: 96.39 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005715/1.59, allocations: 5.794 MB / 0.8157 GB, free: 90.55 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001929/1.592, allocations: 383.4 kB / 0.8161 GB, free: 90.18 MB / 494.1 MB Notification: Performance of SimCode: time 1.543e-06/1.592, allocations: 0 / 0.8161 GB, free: 90.18 MB / 494.1 MB Notification: Performance of Templates: time 0.4933/2.086, allocations: 204.2 MB / 1.016 GB, free: 55.28 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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 OMCppHanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o OMCppHanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppHanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o] Error 1