Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008985/0.0008986, allocations: 88.22 kB / 17.63 MB, free: 6.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000887/0.000887, allocations: 197.2 kB / 18.54 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.569/1.569, allocations: 227.3 MB / 246.6 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002745/0.0002745, allocations: 4 kB / 307.3 MB, free: 1.387 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1341, allocations: 51.5 MB / 358.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.3133/0.4474, allocations: 13.87 MB / 372.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01404/0.4615, allocations: 4.936 MB / 377.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004034/0.4656, allocations: 93.19 kB / 377.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004416/0.4701, allocations: 0.8203 MB / 378.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006027/0.4761, allocations: 1.013 MB / 379.5 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002863/0.479, allocations: 0.6406 MB / 380.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007939/0.4869, allocations: 3.558 MB / 383.7 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004556/0.4915, allocations: 2.328 MB / 386.1 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004034/0.4956, allocations: 1.211 MB / 387.3 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004925/0.5005, allocations: 1.581 MB / 388.9 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009143/0.5015, allocations: 189.7 kB / 389 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002682/0.5042, allocations: 410.2 kB / 389.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00118/0.5054, allocations: 0.7883 MB / 390.2 MB, free: 6.609 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.5072, allocations: 0.6982 MB / 390.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007054/0.5142, allocations: 5.108 MB / 396 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.5143, allocations: 0 / 396 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.769e-06/0.5143, allocations: 5.375 kB / 396 MB, free: 2.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002196/0.5145, allocations: 0 / 396 MB, free: 2.906 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01349/0.528, allocations: 3.64 MB / 399.7 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.626e-05/0.5281, allocations: 8.5 kB / 399.7 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004597/0.5327, allocations: 0.6336 MB / 400.3 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007266/0.54, allocations: 2.147 MB / 402.5 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003975/0.5404, allocations: 249.3 kB / 402.7 MB, free: 14.6 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001461/0.5419, allocations: 310.5 kB / 403 MB, free: 14.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01343/0.5554, allocations: 4.02 MB / 407 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.593e-05/0.5555, allocations: 15.92 kB / 407.1 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003373/0.5558, allocations: 126.1 kB / 407.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002318/0.5561, allocations: 150.2 kB / 407.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008555/0.5646, allocations: 3.366 MB / 410.7 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02584/0.5905, allocations: 13.52 MB / 424.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004463/0.595, allocations: 4.277 MB / 428.5 MB, free: 4.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001599/0.5967, allocations: 1.043 MB / 429.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004705/0.6014, allocations: 2.861 MB / 432.4 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.841e-05/0.6015, allocations: 55.48 kB / 432.5 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 2.875e-06/0.6015, allocations: 0 / 432.5 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01217/0.6137, allocations: 5.976 MB / 438.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.115e-05/0.6138, allocations: 68.72 kB / 438.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003106/0.6169, allocations: 1.892 MB / 440.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.647e-05/0.617, allocations: 45.7 kB / 440.4 MB, free: 8.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001261/0.6183, allocations: 1.514 MB / 441.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004603/0.6187, allocations: 496.4 kB / 442.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.636e-05/0.6188, allocations: 40 kB / 442.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002233/0.6191, allocations: 377.8 kB / 442.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00127/0.6203, allocations: 0.7652 MB / 443.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001778/0.6221, allocations: 1.379 MB / 445 MB, free: 3.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.6237, allocations: 1.002 MB / 446 MB, free: 2.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.6237, allocations: 4 kB / 446 MB, free: 2.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004373/0.6281, allocations: 2.47 MB / 448.5 MB, free: 464 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.714e-05/0.6282, allocations: 12 kB / 448.5 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.155e-05/0.6282, allocations: 23.95 kB / 448.5 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003899/0.6286, allocations: 114.9 kB / 448.6 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001724/0.6303, allocations: 487.2 kB / 449.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.6316, allocations: 1.315 MB / 450.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001766/0.6334, allocations: 111.8 kB / 450.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.6335, allocations: 83.98 kB / 450.6 MB, free: 14.18 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002445/0.636, allocations: 0.987 MB / 451.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003972/0.6364, allocations: 205.5 kB / 451.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003417/0.6398, allocations: 1.958 MB / 453.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.6399, allocations: 12 kB / 453.7 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.6399, allocations: 4 kB / 453.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.6399, allocations: 7.984 kB / 453.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008503/0.6484, allocations: 5.003 MB / 458.8 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.6484, allocations: 4.25 kB / 458.8 MB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.6497, allocations: 315.5 kB / 459.1 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002981/0.6501, allocations: 90.53 kB / 459.2 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.939e-05/0.6501, allocations: 31.98 kB / 459.2 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.6512, allocations: 1.272 MB / 460.5 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.6513, allocations: 4 kB / 460.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004815/0.6561, allocations: 3.077 MB / 463.5 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/0.6574, allocations: 470.3 kB / 464 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002346/0.6576, allocations: 28 kB / 464 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000892/0.6585, allocations: 79.97 kB / 464.1 MB, free: 352 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.6587, allocations: 89.19 kB / 464.2 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.214e-05/0.6588, allocations: 39.95 kB / 464.2 MB, free: 220 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002326/0.6611, allocations: 1.284 MB / 465.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6612, allocations: 2.297 kB / 465.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002346/0.6635, allocations: 0.5352 MB / 466.1 MB, free: 14.38 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004451/0.664, allocations: 189.2 kB / 466.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003775/0.6677, allocations: 2.197 MB / 468.4 MB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.6678, allocations: 4.188 kB / 468.4 MB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001642/0.6694, allocations: 1.173 MB / 469.6 MB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002835/0.6723, allocations: 0.5065 MB / 470.1 MB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01258/0.6849, allocations: 6.784 MB / 476.9 MB, free: 3.359 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002223/0.6871, allocations: 2.221 MB / 479.1 MB, free: 1.105 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001013/0.6882, allocations: 171.4 kB / 479.3 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of SimCode: time 2.445e-06/0.6882, allocations: 0 / 479.3 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of Templates: time 0.3977/1.086, allocations: 85.97 MB / 0.552 GB, free: 144.8 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o OMCppModelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o] Error 1