Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 90.72 kB / 16.95 MB, free: 5.539 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.001346/0.001346, allocations: 190.2 kB / 17.85 MB, free: 5.219 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.557/1.557, allocations: 223.2 MB / 241.8 MB, free: 332 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002791/0.0002797, allocations: 8.688 kB / 301.5 MB, free: 6.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.125, allocations: 50.42 MB / 351.9 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01356/0.1386, allocations: 10.1 MB / 362 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009036/0.1477, allocations: 3.355 MB / 365.3 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002655/0.1504, allocations: 63.69 kB / 365.4 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00255/0.153, allocations: 0.6795 MB / 366.1 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003322/0.1563, allocations: 0.8118 MB / 366.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.1575, allocations: 267.6 kB / 367.1 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006473/0.164, allocations: 3.927 MB / 371.1 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2678/0.4319, allocations: 1.936 MB / 373 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004247/0.4362, allocations: 1.231 MB / 374.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004742/0.441, allocations: 1.618 MB / 375.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001717/0.4427, allocations: 182.2 kB / 376 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002786/0.4455, allocations: 244.9 kB / 376.3 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002815/0.4484, allocations: 0.9156 MB / 377.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002558/0.451, allocations: 0.6656 MB / 377.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009465/0.4605, allocations: 4.409 MB / 382.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.4605, allocations: 0 / 382.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.4605, allocations: 0.9375 kB / 382.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002906/0.4608, allocations: 0 / 382.3 MB, free: 9.641 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.01165/0.4725, allocations: 3.259 MB / 385.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.4725, allocations: 8.656 kB / 385.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002658/0.4752, allocations: 396.1 kB / 385.9 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005768/0.481, allocations: 1.921 MB / 387.8 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003103/0.4813, allocations: 212.7 kB / 388.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001513/0.4828, allocations: 285.9 kB / 388.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01147/0.4943, allocations: 3.838 MB / 392.2 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001541/0.4945, allocations: 12.69 kB / 392.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007988/0.4953, allocations: 117.6 kB / 392.3 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001498/0.4955, allocations: 127.9 kB / 392.4 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007354/0.5028, allocations: 3.234 MB / 395.7 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01996/0.5228, allocations: 11.96 MB / 407.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00341/0.5263, allocations: 3.658 MB / 411.3 MB, free: 7.086 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002045/0.5283, allocations: 1.233 MB / 412.5 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002964/0.5286, allocations: 126.1 kB / 412.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.647e-05/0.5287, allocations: 51.88 kB / 412.7 MB, free: 5.656 MB / 318.1 MB Notification: Performance of pre-optimization done (n=136): time 4.379e-06/0.5287, allocations: 0 / 412.7 MB, free: 5.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.01559/0.5443, allocations: 7.347 MB / 420 MB, free: 14.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.103e-05/0.5444, allocations: 68.72 kB / 420.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003829/0.5483, allocations: 2.044 MB / 422.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000186/0.5485, allocations: 49.7 kB / 422.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/0.5497, allocations: 1.369 MB / 423.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005153/0.5503, allocations: 0.5074 MB / 424.1 MB, free: 9.988 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.5504, allocations: 44 kB / 424.1 MB, free: 9.945 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.5506, allocations: 381.8 kB / 424.5 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001475/0.5521, allocations: 0.8627 MB / 425.3 MB, free: 8.703 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001726/0.5538, allocations: 1.367 MB / 426.7 MB, free: 7.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.5555, allocations: 1.087 MB / 427.8 MB, free: 6.062 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.5556, allocations: 4 kB / 427.8 MB, free: 6.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006551/0.5621, allocations: 3.263 MB / 431.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.414e-05/0.5622, allocations: 14.41 kB / 431.1 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.13e-05/0.5622, allocations: 12.5 kB / 431.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0025/0.5647, allocations: 0.8583 MB / 431.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.5661, allocations: 344.1 kB / 432.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01709/0.5832, allocations: 18.83 MB / 451.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002433/0.5857, allocations: 99.98 kB / 451.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002847/0.586, allocations: 72 kB / 451.3 MB, free: 13.17 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002449/0.5884, allocations: 0.9383 MB / 452.2 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006214/0.5891, allocations: 213.4 kB / 452.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004637/0.5937, allocations: 2.634 MB / 455.1 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.5937, allocations: 12 kB / 455.1 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.5937, allocations: 8 kB / 455.1 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.701e-05/0.5938, allocations: 7.969 kB / 455.1 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0104/0.6042, allocations: 5.891 MB / 461 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/0.6042, allocations: 4 kB / 461 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007621/0.605, allocations: 195.7 kB / 461.2 MB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001864/0.6069, allocations: 0.7334 MB / 461.9 MB, free: 2.293 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.985e-05/0.607, allocations: 35.98 kB / 461.9 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01483/0.6218, allocations: 16.73 MB / 478.7 MB, free: 212 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.216e-06/0.6219, allocations: 8 kB / 478.7 MB, free: 204 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007123/0.629, allocations: 3.791 MB / 482.5 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002099/0.6312, allocations: 482.3 kB / 482.9 MB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003838/0.6316, allocations: 35.98 kB / 483 MB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.6326, allocations: 115.8 kB / 483.1 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004365/0.6331, allocations: 137.1 kB / 483.2 MB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.6332, allocations: 47.98 kB / 483.3 MB, free: 11.47 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002631/0.6358, allocations: 1.384 MB / 484.7 MB, free: 10.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6358, allocations: 0 / 484.7 MB, free: 10.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0031/0.639, allocations: 0.6562 MB / 485.3 MB, free: 9.41 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003967/0.6394, allocations: 177.8 kB / 485.5 MB, free: 9.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004934/0.6443, allocations: 3.437 MB / 488.9 MB, free: 5.664 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.6443, allocations: 0 / 488.9 MB, free: 5.664 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002802/0.6471, allocations: 2.204 MB / 491.1 MB, free: 3.336 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004103/0.6513, allocations: 0.6564 MB / 491.8 MB, free: 2.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01208/0.6634, allocations: 6.742 MB / 498.5 MB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002359/0.6658, allocations: 2.249 MB / 0.489 GB, free: 9.598 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008222/0.6666, allocations: 143.4 kB / 0.4892 GB, free: 9.457 MB / 414.1 MB Notification: Performance of SimCode: time 1.934e-06/0.6666, allocations: 4 kB / 0.4892 GB, free: 9.453 MB / 414.1 MB Notification: Performance of Templates: time 0.515/1.182, allocations: 187.4 MB / 0.6722 GB, free: 22.92 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.SynchronousMachines.SMPM_ResistiveBrakingCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBrakingCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBrakingCalcHelperMain.o] Error 1