Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001075/0.001074, allocations: 93.53 kB / 17.63 MB, free: 6.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001431/0.001431, allocations: 198.2 kB / 18.54 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.622/1.622, allocations: 227.3 MB / 246.6 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003191/0.0003191, allocations: 4 kB / 307.3 MB, free: 1.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1524, allocations: 51.49 MB / 358.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.0131/0.1656, allocations: 10.14 MB / 368.9 MB, free: 3.957 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008835/0.1745, allocations: 3.401 MB / 372.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002532/0.1771, allocations: 59.69 kB / 372.4 MB, free: 496 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3085/0.4856, allocations: 0.6703 MB / 373.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004097/0.4898, allocations: 0.82 MB / 373.9 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.491, allocations: 272.2 kB / 374.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007386/0.4984, allocations: 3.926 MB / 378.1 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003839/0.5022, allocations: 1.951 MB / 380 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003769/0.506, allocations: 1.236 MB / 381.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003829/0.5099, allocations: 1.62 MB / 382.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006189/0.5105, allocations: 182.5 kB / 383.1 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/0.5118, allocations: 250.4 kB / 383.3 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001297/0.5131, allocations: 0.9136 MB / 384.2 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001357/0.5145, allocations: 0.6678 MB / 384.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005395/0.5199, allocations: 4.412 MB / 389.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.5199, allocations: 0 / 389.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.5199, allocations: 1 kB / 389.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001701/0.5201, allocations: 0 / 389.3 MB, free: 6.387 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.008197/0.5283, allocations: 3.262 MB / 392.6 MB, free: 4.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.5284, allocations: 8.719 kB / 392.6 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001465/0.5299, allocations: 399.3 kB / 393 MB, free: 4.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004672/0.5345, allocations: 1.922 MB / 394.9 MB, free: 3.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.5348, allocations: 216.8 kB / 395.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008229/0.5356, allocations: 285.9 kB / 395.4 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008305/0.5439, allocations: 3.837 MB / 399.2 MB, free: 1.586 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.897e-05/0.544, allocations: 7.812 kB / 399.2 MB, free: 1.582 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002772/0.5443, allocations: 117.5 kB / 399.3 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001346/0.5445, allocations: 124.2 kB / 399.5 MB, free: 1.473 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006114/0.5506, allocations: 3.236 MB / 402.7 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.022/0.5726, allocations: 11.98 MB / 414.7 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003262/0.5759, allocations: 3.655 MB / 418.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/0.5778, allocations: 1.233 MB / 419.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002605/0.5781, allocations: 134.2 kB / 419.7 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.636e-05/0.5781, allocations: 51.83 kB / 419.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 3.396e-06/0.5782, allocations: 0 / 419.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01438/0.5925, allocations: 7.338 MB / 427.1 MB, free: 5.387 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.5926, allocations: 68.72 kB / 427.1 MB, free: 5.305 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003429/0.5961, allocations: 2.052 MB / 429.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001667/0.5962, allocations: 53.7 kB / 429.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001038/0.5973, allocations: 1.374 MB / 430.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000453/0.5978, allocations: 0.5057 MB / 431.1 MB, free: 1.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.804e-05/0.5979, allocations: 40.84 kB / 431.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.598, allocations: 381.9 kB / 431.5 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001337/0.5994, allocations: 0.8589 MB / 432.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/0.6011, allocations: 1.362 MB / 433.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001588/0.6027, allocations: 1.094 MB / 434.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.954e-06/0.6027, allocations: 8 kB / 434.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005605/0.6083, allocations: 3.265 MB / 438.1 MB, free: 10 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.084e-05/0.6084, allocations: 8 kB / 438.1 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/0.6084, allocations: 16.5 kB / 438.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002247/0.6106, allocations: 0.8609 MB / 439 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.6119, allocations: 343.4 kB / 439.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01651/0.6284, allocations: 18.82 MB / 458.2 MB, free: 4.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002211/0.6306, allocations: 95.89 kB / 458.3 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001715/0.6308, allocations: 76.16 kB / 458.3 MB, free: 4.312 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.002243/0.6331, allocations: 0.9448 MB / 459.3 MB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000519/0.6336, allocations: 221.3 kB / 459.5 MB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004374/0.638, allocations: 2.617 MB / 462.1 MB, free: 468 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.937e-05/0.638, allocations: 19.95 kB / 462.1 MB, free: 448 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.448e-05/0.6381, allocations: 4 kB / 462.1 MB, free: 444 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.732e-05/0.6381, allocations: 7.969 kB / 462.1 MB, free: 436 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/0.6482, allocations: 5.907 MB / 468 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.6483, allocations: 4 kB / 468.1 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007631/0.649, allocations: 199.7 kB / 468.2 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001824/0.6509, allocations: 0.7408 MB / 469 MB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.533e-05/0.651, allocations: 32 kB / 469 MB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01424/0.6652, allocations: 16.71 MB / 485.7 MB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/0.6653, allocations: 7.953 kB / 485.7 MB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006299/0.6716, allocations: 3.793 MB / 489.5 MB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001771/0.6734, allocations: 482.3 kB / 490 MB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003599/0.6738, allocations: 32 kB / 490 MB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.6748, allocations: 115.9 kB / 490.1 MB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003776/0.6752, allocations: 148.5 kB / 490.3 MB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.486e-05/0.6753, allocations: 47.98 kB / 490.3 MB, free: 2.598 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002525/0.6778, allocations: 1.392 MB / 491.7 MB, free: 1.184 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6778, allocations: 0 / 491.7 MB, free: 1.184 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003152/0.681, allocations: 0.6602 MB / 492.4 MB, free: 0.5234 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.0003879/0.6814, allocations: 167 kB / 492.6 MB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005/0.6864, allocations: 3.437 MB / 496 MB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.6864, allocations: 0 / 496 MB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00264/0.6891, allocations: 2.202 MB / 498.2 MB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003807/0.6929, allocations: 0.6551 MB / 498.9 MB, free: 9.809 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/0.7034, allocations: 6.752 MB / 0.4938 GB, free: 3 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002407/0.7059, allocations: 2.245 MB / 0.4959 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009535/0.7068, allocations: 147.4 kB / 0.4961 GB, free: 0.582 MB / 414.1 MB Notification: Performance of SimCode: time 2.244e-06/0.7068, allocations: 0 / 0.4961 GB, free: 0.582 MB / 414.1 MB Notification: Performance of Templates: time 0.4755/1.182, allocations: 187.7 MB / 0.6794 GB, free: 8.762 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile make -j1 -f Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBrakingCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBrakingCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBrakingCalcHelperMain.o] Error 1