Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009466/0.0009466, allocations: 92.42 kB / 16.95 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.001033/0.001033, allocations: 181.8 kB / 17.84 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.638/1.638, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1759/0.1759, allocations: 38.05 MB / 310.3 MB, free: 6.027 MB / 254.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.0005146/0.0005146, allocations: 16 kB / 377.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2961, allocations: 56.33 MB / 433.5 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007091/0.3032, allocations: 7.555 MB / 441 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006677/0.3099, allocations: 4.822 MB / 445.9 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001075/0.311, allocations: 59.62 kB / 445.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007175/0.3182, allocations: 4.483 MB / 450.4 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001671/0.3199, allocations: 0.5246 MB / 450.9 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001238/0.3212, allocations: 409.8 kB / 451.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002994/0.3242, allocations: 2.569 MB / 453.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001545/0.3257, allocations: 1.034 MB / 454.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008349/0.3266, allocations: 0.5407 MB / 455.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009144/0.3275, allocations: 0.7083 MB / 456.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.3276, allocations: 48 kB / 456.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.3279, allocations: 63.98 kB / 456.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003484/0.3282, allocations: 366.9 kB / 456.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002217/0.3284, allocations: 233.1 kB / 456.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001063/0.3295, allocations: 1.258 MB / 458.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3295, allocations: 0 / 458.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.806e-06/0.3295, allocations: 0 / 458.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.3296, allocations: 0 / 458.1 MB, free: 10.05 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002568/0.3321, allocations: 1.246 MB / 459.4 MB, free: 8.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.3322, allocations: 8.031 kB / 459.4 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000401/0.3326, allocations: 134.5 kB / 459.5 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001626/0.3342, allocations: 0.8597 MB / 460.4 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.186e-05/0.3343, allocations: 65.98 kB / 460.4 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000155/0.3345, allocations: 95.89 kB / 460.5 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002005/0.3365, allocations: 1.222 MB / 461.8 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.877e-05/0.3365, allocations: 4 kB / 461.8 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.165e-05/0.3366, allocations: 35.98 kB / 461.8 MB, free: 6.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001973/0.3368, allocations: 77.89 kB / 461.9 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.3385, allocations: 1.011 MB / 462.9 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006907/0.3454, allocations: 4.445 MB / 467.3 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001466/0.3469, allocations: 0.8875 MB / 468.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007655/0.3477, allocations: 444.1 kB / 468.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.064e-05/0.3478, allocations: 13.33 kB / 468.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.3478, allocations: 47.06 kB / 468.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 5.64e-06/0.3478, allocations: 0 / 468.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.006444/0.3543, allocations: 3.346 MB / 472.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.415e-05/0.3544, allocations: 141.1 kB / 472.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000866/0.3552, allocations: 0.6804 MB / 472.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.661e-05/0.3553, allocations: 37.7 kB / 472.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004292/0.3558, allocations: 483.3 kB / 473.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/0.356, allocations: 260.2 kB / 473.6 MB, free: 9.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-05/0.356, allocations: 16 kB / 473.7 MB, free: 9.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002174/0.3563, allocations: 345.9 kB / 474 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006367/0.3569, allocations: 373.8 kB / 474.4 MB, free: 9.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007906/0.3577, allocations: 0.5861 MB / 474.9 MB, free: 8.559 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005683/0.3634, allocations: 1.527 MB / 476.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.3634, allocations: 3.938 kB / 476.5 MB, free: 7.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005225/0.3687, allocations: 2.052 MB / 478.5 MB, free: 4.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002447/0.3689, allocations: 283.9 kB / 478.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.3689, allocations: 8 kB / 478.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004272/0.3732, allocations: 1.047 MB / 479.9 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005267/0.3738, allocations: 131.8 kB / 480 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0146/0.3884, allocations: 9.229 MB / 489.2 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007513/0.3892, allocations: 48.03 kB / 489.3 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.695e-05/0.3892, allocations: 35.98 kB / 489.3 MB, free: 9.777 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.3893, allocations: 4 kB / 489.3 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004792/0.3941, allocations: 1.844 MB / 491.1 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.3941, allocations: 4.312 kB / 491.1 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00382/0.3979, allocations: 1.008 MB / 492.2 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004942/0.3984, allocations: 135.7 kB / 492.3 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0134/0.4118, allocations: 8.954 MB / 0.4895 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007065/0.4126, allocations: 40.16 kB / 0.4895 GB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.837e-05/0.4126, allocations: 43.98 kB / 0.4896 GB, free: 13.45 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 63 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.0007278/0.4134, allocations: 408.7 kB / 0.49 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.4135, allocations: 86.97 kB / 0.49 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002053/0.4156, allocations: 1.261 MB / 0.4913 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.4156, allocations: 15.92 kB / 0.4913 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.4156, allocations: 4 kB / 0.4913 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.4156, allocations: 3.984 kB / 0.4913 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003673/0.4193, allocations: 2.406 MB / 0.4937 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.4193, allocations: 4 kB / 0.4937 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007801/0.4201, allocations: 163.8 kB / 0.4938 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004493/0.4206, allocations: 159.2 kB / 0.494 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.046e-05/0.4207, allocations: 23.98 kB / 0.494 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004/0.4247, allocations: 5.389 MB / 0.4992 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.4247, allocations: 8.188 kB / 0.4993 GB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.4273, allocations: 1.868 MB / 0.5011 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003676/0.4277, allocations: 235.9 kB / 0.5013 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.4278, allocations: 16 kB / 0.5013 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004291/0.4283, allocations: 36.06 kB / 0.5014 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.4284, allocations: 60.52 kB / 0.5014 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-05/0.4285, allocations: 27.98 kB / 0.5014 GB, free: 468 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006392/0.4291, allocations: 479.1 kB / 0.5019 GB, free: 15.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4291, allocations: 0 / 0.5019 GB, free: 15.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001781/0.4309, allocations: 460 kB / 0.5023 GB, free: 15.54 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.phiRotorflux,loadInertia.w,frictTorq.phi,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000211/0.4311, allocations: 131 kB / 0.5025 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004736/0.4359, allocations: 2.575 MB / 0.505 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.4359, allocations: 1.125 kB / 0.505 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.437, allocations: 0.9164 MB / 0.5059 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.4381, allocations: 242.6 kB / 0.5061 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004018/0.4422, allocations: 2.993 MB / 0.509 GB, free: 8.531 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008541/0.443, allocations: 1.174 MB / 0.5102 GB, free: 7.328 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002543/0.4433, allocations: 75.41 kB / 0.5102 GB, free: 7.254 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4433, allocations: 4 kB / 0.5102 GB, free: 7.25 MB / 398.1 MB Notification: Performance of Templates: time 0.2412/0.6846, allocations: 27.61 MB / 0.5372 GB, free: 74.17 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.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 OMCppPowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAvCalcHelperMain.o OMCppPowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAvCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAvCalcHelperMain.o] Error 1