Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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 4.0.0+maint.om/package.mo", uses=false) 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 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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 95.23 kB / 16.96 MB, free: 6.457 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.001312/0.001312, allocations: 180 kB / 17.84 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.668/1.668, allocations: 223.2 MB / 241.9 MB, free: 14.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003581/0.0003584, allocations: 5.188 kB / 301.5 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1342, allocations: 50.42 MB / 351.9 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01267/0.147, allocations: 10.38 MB / 362.3 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008611/0.1557, allocations: 3.045 MB / 365.3 MB, free: 6.316 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002654/0.1584, allocations: 35.88 kB / 365.3 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.1605, allocations: 0.5242 MB / 365.9 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00265/0.1632, allocations: 0.5428 MB / 366.4 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.1642, allocations: 247.7 kB / 366.6 MB, free: 4.965 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003212/0.1674, allocations: 2.008 MB / 368.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.1686, allocations: 0.683 MB / 369.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001402/0.17, allocations: 0.665 MB / 370 MB, free: 1.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009862/0.171, allocations: 0.7542 MB / 370.8 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001766/0.1712, allocations: 104 kB / 370.9 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003918/0.1716, allocations: 140 kB / 371 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002618/0.1719, allocations: 294.6 kB / 371.3 MB, free: 292 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.281/0.4528, allocations: 384.1 kB / 371.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004516/0.4574, allocations: 2.103 MB / 373.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.336e-05/0.4575, allocations: 0 / 373.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.4575, allocations: 0 / 373.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001134/0.4576, allocations: 1.219 kB / 373.8 MB, free: 12.25 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.004953/0.4625, allocations: 1.775 MB / 375.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.4626, allocations: 12.98 kB / 375.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001019/0.4636, allocations: 257.2 kB / 375.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002178/0.4658, allocations: 0.9866 MB / 376.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/0.466, allocations: 116.7 kB / 376.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002297/0.4662, allocations: 158.9 kB / 377.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003276/0.4695, allocations: 1.482 MB / 378.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.858e-05/0.4696, allocations: 12.45 kB / 378.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001373/0.4697, allocations: 66.8 kB / 378.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.057e-05/0.4698, allocations: 38.53 kB / 378.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002392/0.4722, allocations: 0.9715 MB / 379.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01159/0.4838, allocations: 6.589 MB / 386.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009492/0.4848, allocations: 406.9 kB / 386.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004838/0.4853, allocations: 227.5 kB / 386.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.35e-05/0.4853, allocations: 8.469 kB / 386.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006147/0.486, allocations: 276.2 kB / 387.1 MB, free: 7.219 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.795e-06/0.486, allocations: 0 / 387.1 MB, free: 7.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004273/0.4903, allocations: 1.779 MB / 388.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.4904, allocations: 165 kB / 389.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002484/0.4929, allocations: 1.269 MB / 390.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.868e-05/0.493, allocations: 35.27 kB / 390.4 MB, free: 5.734 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007438/0.4937, allocations: 0.8736 MB / 391.2 MB, free: 5.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.4939, allocations: 209.4 kB / 391.4 MB, free: 5.082 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.016e-05/0.4939, allocations: 24.41 kB / 391.5 MB, free: 5.082 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.721e-05/0.494, allocations: 350.6 kB / 391.8 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005071/0.4945, allocations: 226.6 kB / 392 MB, free: 4.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008755/0.4954, allocations: 0.8012 MB / 392.8 MB, free: 3.945 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007725/0.4962, allocations: 401.7 kB / 393.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-05/0.4962, allocations: 5.469 kB / 393.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002598/0.4988, allocations: 1.177 MB / 394.4 MB, free: 3.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.885e-05/0.4989, allocations: 43.8 kB / 394.4 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.717e-05/0.499, allocations: 24.3 kB / 394.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002869/0.4993, allocations: 72.19 kB / 394.5 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008051/0.5001, allocations: 264.4 kB / 394.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001614/0.5017, allocations: 2.575 MB / 397.4 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.5032, allocations: 72.09 kB / 397.4 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-05/0.5032, allocations: 58.62 kB / 397.5 MB, free: 0.6953 MB / 302.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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (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,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009269/0.5042, allocations: 360.9 kB / 397.9 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000227/0.5044, allocations: 133.6 kB / 398 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001058/0.5055, allocations: 0.5604 MB / 398.5 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.5055, allocations: 10.3 kB / 398.6 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/0.5055, allocations: 0 / 398.6 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.066e-06/0.5055, allocations: 5.359 kB / 398.6 MB, free: 40 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003609/0.5091, allocations: 1.876 MB / 400.4 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/0.5092, allocations: 9.406 kB / 400.4 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004534/0.5096, allocations: 107.5 kB / 400.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001636/0.5098, allocations: 44.25 kB / 400.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.683e-05/0.5099, allocations: 14.88 kB / 400.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002117/0.512, allocations: 2.563 MB / 403.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/0.512, allocations: 7.828 kB / 403.2 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/0.514, allocations: 0.9331 MB / 404.1 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000822/0.5148, allocations: 262 kB / 404.4 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.515, allocations: 15.94 kB / 404.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005855/0.5156, allocations: 39.69 kB / 404.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.5158, allocations: 49.73 kB / 404.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.5158, allocations: 19.72 kB / 404.5 MB, free: 11.04 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002331/0.5181, allocations: 0.8335 MB / 405.3 MB, free: 10.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5182, allocations: 3.375 kB / 405.3 MB, free: 10.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001897/0.5201, allocations: 304.9 kB / 405.6 MB, free: 10.55 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 (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,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002973/0.5204, allocations: 128.9 kB / 405.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001962/0.5223, allocations: 0.9309 MB / 406.7 MB, free: 9.926 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.5224, allocations: 4.188 kB / 406.7 MB, free: 9.922 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000744/0.5231, allocations: 456.1 kB / 407.1 MB, free: 9.613 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001884/0.525, allocations: 322.3 kB / 407.4 MB, free: 9.449 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006216/0.5312, allocations: 3.127 MB / 410.6 MB, free: 6.965 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009491/0.5322, allocations: 1.182 MB / 411.7 MB, free: 5.754 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003739/0.5326, allocations: 87.44 kB / 411.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of SimCode: time 2.014e-06/0.5326, allocations: 0 / 411.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of Templates: time 0.04806/0.5807, allocations: 31.3 MB / 443.1 MB, free: 6.453 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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 OMCppModelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStaticCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStaticCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStaticCalcHelperMain.o] Error 1