Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001033/0.001033, allocations: 95.62 kB / 17.63 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001512/0.001512, allocations: 201 kB / 18.54 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.734/1.734, allocations: 227.3 MB / 246.6 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002634/0.0002634, allocations: 4 kB / 307.3 MB, free: 1.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1436, allocations: 51.49 MB / 358.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01262/0.1563, allocations: 10.19 MB / 369 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009746/0.1661, allocations: 3.55 MB / 372.5 MB, free: 140 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003079/0.1693, allocations: 59.75 kB / 372.6 MB, free: 80 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3389/0.5082, allocations: 0.6527 MB / 373.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004584/0.5128, allocations: 0.7902 MB / 374 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001562/0.5144, allocations: 314.8 kB / 374.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006266/0.5207, allocations: 3.398 MB / 377.7 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003489/0.5242, allocations: 1.737 MB / 379.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003237/0.5274, allocations: 1.116 MB / 380.6 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004043/0.5315, allocations: 1.463 MB / 382.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007735/0.5323, allocations: 162.3 kB / 382.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001562/0.5339, allocations: 233.3 kB / 382.5 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001276/0.5352, allocations: 0.8102 MB / 383.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001363/0.5365, allocations: 0.6024 MB / 383.9 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005311/0.5419, allocations: 4.116 MB / 388 MB, free: 7.086 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.5419, allocations: 1.25 kB / 388 MB, free: 7.086 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.5419, allocations: 0 / 388 MB, free: 7.086 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001411/0.542, allocations: 1.688 kB / 388 MB, free: 7.086 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.008041/0.5501, allocations: 2.981 MB / 391 MB, free: 5.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.5502, allocations: 12.52 kB / 391 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001574/0.5517, allocations: 355.3 kB / 391.3 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00363/0.5554, allocations: 1.787 MB / 393.1 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001664/0.5556, allocations: 189.1 kB / 393.3 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000491/0.5561, allocations: 243.3 kB / 393.5 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007408/0.5635, allocations: 3.414 MB / 396.9 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-05/0.5636, allocations: 9.344 kB / 397 MB, free: 2.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002413/0.5638, allocations: 100.6 kB / 397.1 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001285/0.564, allocations: 116.7 kB / 397.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005339/0.5693, allocations: 2.926 MB / 400.1 MB, free: 1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0204/0.5897, allocations: 10.93 MB / 411 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00312/0.5929, allocations: 2.427 MB / 413.5 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001884/0.5948, allocations: 1.187 MB / 414.6 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002875/0.5951, allocations: 134.2 kB / 414.8 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.08e-05/0.5952, allocations: 43.88 kB / 414.8 MB, free: 2.109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 4.448e-06/0.5952, allocations: 4 kB / 414.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.01551/0.6107, allocations: 7.261 MB / 422.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.686e-05/0.6109, allocations: 94.42 kB / 422.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003084/0.614, allocations: 1.823 MB / 424 MB, free: 8.785 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001335/0.6141, allocations: 49.7 kB / 424 MB, free: 8.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000911/0.615, allocations: 1.218 MB / 425.3 MB, free: 7.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004212/0.6154, allocations: 0.4886 MB / 425.8 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.173e-05/0.6155, allocations: 36 kB / 425.8 MB, free: 6.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.6157, allocations: 381.9 kB / 426.2 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.617, allocations: 0.8393 MB / 427 MB, free: 5.762 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/0.6186, allocations: 1.314 MB / 428.3 MB, free: 4.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001463/0.62, allocations: 1.027 MB / 429.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.6201, allocations: 4 kB / 429.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004896/0.625, allocations: 2.847 MB / 432.2 MB, free: 360 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005127/0.6255, allocations: 0.5007 MB / 432.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.897e-05/0.6255, allocations: 19.98 kB / 432.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001572/0.6271, allocations: 0.6611 MB / 433.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.6286, allocations: 363.4 kB / 433.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009683/0.6382, allocations: 8.302 MB / 442 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002283/0.6406, allocations: 119.8 kB / 442.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000234/0.6408, allocations: 72 kB / 442.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.6408, allocations: 4 kB / 442.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004319/0.6452, allocations: 2.619 MB / 444.8 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.26e-05/0.6452, allocations: 12 kB / 444.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.6467, allocations: 0.6736 MB / 445.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.6479, allocations: 355.4 kB / 445.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00924/0.6571, allocations: 8.315 MB / 454.2 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002081/0.6593, allocations: 107.8 kB / 454.3 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.6594, allocations: 67.98 kB / 454.4 MB, free: 9.176 MB / 366.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: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (181): * Single equations (assignments): 177 * 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: 2 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002224/0.6617, allocations: 0.9328 MB / 455.3 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006203/0.6623, allocations: 205.6 kB / 455.5 MB, free: 8.031 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004279/0.6666, allocations: 2.552 MB / 458 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.6666, allocations: 16 kB / 458.1 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.6666, allocations: 4 kB / 458.1 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.539e-05/0.6666, allocations: 7.969 kB / 458.1 MB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008837/0.6755, allocations: 5.424 MB / 463.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.6755, allocations: 12.06 kB / 463.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008682/0.6764, allocations: 219.7 kB / 463.7 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001507/0.6779, allocations: 0.6927 MB / 464.4 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.305e-05/0.678, allocations: 35.98 kB / 464.4 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0101/0.6881, allocations: 9.766 MB / 474.2 MB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.6881, allocations: 4 kB / 474.2 MB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005984/0.6941, allocations: 3.739 MB / 478 MB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001448/0.6956, allocations: 482.4 kB / 478.4 MB, free: 392 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002857/0.6959, allocations: 27.98 kB / 478.5 MB, free: 364 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009587/0.6969, allocations: 99.89 kB / 478.6 MB, free: 264 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003158/0.6972, allocations: 121 kB / 478.7 MB, free: 144 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.075e-05/0.6973, allocations: 47.98 kB / 478.7 MB, free: 96 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002172/0.6995, allocations: 1.246 MB / 480 MB, free: 14.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6995, allocations: 2.406 kB / 480 MB, free: 14.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003599/0.7031, allocations: 0.9961 MB / 481 MB, free: 13.86 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * 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: 4 * 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%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003992/0.7035, allocations: 167.9 kB / 481.1 MB, free: 13.69 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006822/0.7103, allocations: 4.487 MB / 485.6 MB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.555e-06/0.7104, allocations: 0 / 485.6 MB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002472/0.7129, allocations: 1.729 MB / 487.3 MB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003553/0.7164, allocations: 0.6035 MB / 487.9 MB, free: 6.719 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/0.7269, allocations: 6.488 MB / 494.4 MB, free: 188 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001933/0.7288, allocations: 2.072 MB / 496.5 MB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007058/0.7296, allocations: 143.4 kB / 496.6 MB, free: 13.93 MB / 414.1 MB Notification: Performance of SimCode: time 2.064e-06/0.7296, allocations: 2.297 kB / 496.6 MB, free: 13.93 MB / 414.1 MB Notification: Performance of Templates: time 0.3861/1.116, allocations: 86.54 MB / 0.5695 GB, free: 123.1 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_BrakingCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_BrakingCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_BrakingCalcHelperMain.o] Error 1