Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009061/0.0009063, allocations: 90 kB / 16.33 MB, free: 5.938 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.000835/0.0008352, allocations: 184.8 kB / 17.22 MB, free: 5.863 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.542/1.542, allocations: 205.4 MB / 223.4 MB, free: 5.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3561/0.3561, allocations: 43.55 MB / 315.2 MB, free: 9.129 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.0005198/0.0005199, allocations: 16 kB / 384.5 MB, free: 8.266 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1278, allocations: 58.85 MB / 443.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01113/0.139, allocations: 10.28 MB / 453.7 MB, free: 2.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2547/0.3937, allocations: 3.722 MB / 457.4 MB, free: 36.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00221/0.396, allocations: 57.75 kB / 457.5 MB, free: 36.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001967/0.398, allocations: 0.6853 MB / 458.1 MB, free: 36.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002838/0.4008, allocations: 0.8018 MB / 458.9 MB, free: 36.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000972/0.4018, allocations: 334.6 kB / 459.3 MB, free: 36.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003303/0.4051, allocations: 3.318 MB / 462.6 MB, free: 36.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002267/0.4074, allocations: 2.062 MB / 464.6 MB, free: 35.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.4091, allocations: 1.126 MB / 465.8 MB, free: 35.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001855/0.411, allocations: 1.587 MB / 467.4 MB, free: 35.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002807/0.4113, allocations: 174.1 kB / 467.5 MB, free: 35.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006463/0.4119, allocations: 257.3 kB / 467.8 MB, free: 35.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007976/0.4127, allocations: 0.9107 MB / 468.7 MB, free: 35.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000675/0.4134, allocations: 0.6303 MB / 469.3 MB, free: 34.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003316/0.4167, allocations: 4.462 MB / 473.8 MB, free: 34.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.4168, allocations: 0 / 473.8 MB, free: 34.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4168, allocations: 0 / 473.8 MB, free: 34.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.953e-05/0.4169, allocations: 0 / 473.8 MB, free: 34.64 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.005894/0.4228, allocations: 3.249 MB / 477 MB, free: 33.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.4228, allocations: 9.812 kB / 477 MB, free: 33.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009739/0.4238, allocations: 394 kB / 477.4 MB, free: 33.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002948/0.4267, allocations: 1.873 MB / 479.3 MB, free: 32.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/0.4269, allocations: 222.6 kB / 479.5 MB, free: 32.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00037/0.4273, allocations: 285 kB / 479.8 MB, free: 32.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006156/0.4335, allocations: 3.712 MB / 483.5 MB, free: 32.24 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.425e-05/0.4335, allocations: 7.547 kB / 483.5 MB, free: 32.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002271/0.4338, allocations: 120.5 kB / 483.6 MB, free: 32.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001259/0.4339, allocations: 139.6 kB / 483.8 MB, free: 32.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005323/0.4392, allocations: 3.156 MB / 486.9 MB, free: 31.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01892/0.4582, allocations: 11.61 MB / 498.5 MB, free: 25.22 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003364/0.4616, allocations: 2.181 MB / 0.489 GB, free: 23.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001838/0.4635, allocations: 1.227 MB / 0.4902 GB, free: 23.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002884/0.4638, allocations: 217.6 kB / 0.4904 GB, free: 22.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.4638, allocations: 45.69 kB / 0.4904 GB, free: 22.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 4.428e-06/0.4638, allocations: 0 / 0.4904 GB, free: 22.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01738/0.4812, allocations: 8.217 MB / 0.4985 GB, free: 18.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.4813, allocations: 74.42 kB / 0.4985 GB, free: 18.33 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002841/0.4841, allocations: 1.918 MB / 0.5004 GB, free: 17.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.565e-05/0.4842, allocations: 51.36 kB / 0.5005 GB, free: 17.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007512/0.485, allocations: 1.363 MB / 0.5018 GB, free: 16.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003332/0.4853, allocations: 0.5178 MB / 0.5023 GB, free: 15.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.38e-05/0.4854, allocations: 34.56 kB / 0.5023 GB, free: 15.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.4856, allocations: 372.2 kB / 0.5027 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.4868, allocations: 0.8838 MB / 0.5035 GB, free: 14.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/0.4881, allocations: 1.344 MB / 0.5049 GB, free: 13.74 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.4896, allocations: 1.086 MB / 0.5059 GB, free: 13.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.774e-06/0.4896, allocations: 9.938 kB / 0.5059 GB, free: 13.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004129/0.4937, allocations: 2.915 MB / 0.5088 GB, free: 10.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.4937, allocations: 22.39 kB / 0.5088 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.4938, allocations: 16 kB / 0.5088 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007347/0.4945, allocations: 385.7 kB / 0.5092 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/0.4959, allocations: 447.3 kB / 0.5096 GB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004226/0.5002, allocations: 6.212 MB / 0.5157 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/0.5017, allocations: 123.8 kB / 0.5158 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.5018, allocations: 75.98 kB / 0.5159 GB, free: 3.109 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001539/0.5033, allocations: 0.9031 MB / 0.5167 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002707/0.5036, allocations: 205.5 kB / 0.5169 GB, free: 1.992 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004308/0.5079, allocations: 2.907 MB / 0.5198 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.508, allocations: 16 kB / 0.5198 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.508, allocations: 8 kB / 0.5198 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.508, allocations: 7.969 kB / 0.5198 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009875/0.5179, allocations: 6.158 MB / 0.5258 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.435e-05/0.5179, allocations: 4 kB / 0.5258 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009504/0.5189, allocations: 239.6 kB / 0.526 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001906/0.5208, allocations: 0.8038 MB / 0.5268 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/0.5209, allocations: 39.98 kB / 0.5269 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0107/0.5316, allocations: 9.85 MB / 0.5365 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.5317, allocations: 4 kB / 0.5365 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006417/0.5381, allocations: 4.172 MB / 0.5406 GB, free: 9.199 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001107/0.5392, allocations: 0.4905 MB / 0.541 GB, free: 8.688 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000255/0.5395, allocations: 36 kB / 0.5411 GB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009587/0.5404, allocations: 99.88 kB / 0.5412 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002724/0.5407, allocations: 129 kB / 0.5413 GB, free: 8.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.645e-05/0.5408, allocations: 43.98 kB / 0.5413 GB, free: 8.387 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00197/0.5428, allocations: 1.321 MB / 0.5426 GB, free: 7.043 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.052e-06/0.5428, allocations: 0 / 0.5426 GB, free: 7.043 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002074/0.5449, allocations: 0.5724 MB / 0.5432 GB, free: 6.473 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (117): * Single equations (assignments): 114 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(5,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003284/0.5452, allocations: 168.2 kB / 0.5434 GB, free: 6.297 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00379/0.549, allocations: 2.626 MB / 0.5459 GB, free: 3.613 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.549, allocations: 0 / 0.5459 GB, free: 3.613 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00221/0.5513, allocations: 1.64 MB / 0.5475 GB, free: 1.941 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002631/0.5539, allocations: 0.5198 MB / 0.548 GB, free: 1.426 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/0.5656, allocations: 6.917 MB / 0.5548 GB, free: 10.43 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002736/0.5684, allocations: 2.19 MB / 0.5569 GB, free: 8.207 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008984/0.5693, allocations: 163.4 kB / 0.5571 GB, free: 8.047 MB / 430.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5693, allocations: 0 / 0.5571 GB, free: 8.047 MB / 430.1 MB Notification: Performance of Templates: time 0.3305/0.8998, allocations: 84.56 MB / 0.6397 GB, free: 139.5 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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 OMCppModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLossesCalcHelperMain.o OMCppModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLossesCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLossesCalcHelperMain.o] Error 1